SQL in DB Connection
-
Hiho,
I need to connect data that I will store in a seperate table in the WordPress database. This is data which shows “monthly counts”. So every month there will be a new row added with the count data from the latest month.
For example:bikes | cars | pedestrian
202001 3 | 18 | 201
202002 4 | 20 | 99With every month getting a new row added.
I found out that I can connect a database when using the developer version. So far so good.
My question is: To always have the “latest row” adressed (or the three latest, whatever), I cannot connect to a “given” table row. I would need to adress the data through SQL like SORT plus LIMIT. I want to show the data through calculated fields in sorted tables/overviews an perhaps also do some calculations.
Question: Is this possible or how would a solution for this problem would look like?
Thanks for your input.
Best regards,
nici-
- The topic ‘SQL in DB Connection’ is closed to new replies.