Can pay a
small bounty upon the successful test of code on my server. I would hope my trust would show me to be an honest person... please check out feedback from haploid23.
Ok, so I already have the connection bit down that connects to the DB and can select it successfully. I need a query that will choose table "cats", now in this table "cats" are two rows... "age" and "added".
Well, lets say that in table "cats" we have 5 rows which look as follows...
age | added |
12 | 12345 |
14 | 12345 |
9 | 12345 |
12 | 12345 |
18 | 12345 |
This is also where the PHP help comes in. The query I need would read this info and the PHP put it in a foreach type of thing so the HTML table data shows each item, like the "mock" table seen above. Basically I just want to pull the info from DB cats and show it in an HTML table.
I just need the foreach thing written for me in PHP that displays the pulled DB info in the table td's.
<td>
"age"
</td>
<td>
"added"
</td>
I know I probably could have said this all in a much simpler way but I haven't slept yet and wanted to get this posted before I lose what little brain activity I have left lol
Edit: It should order descending by the "added" row so the newest entry is always the first td.
Ty.