I have this small project I have been working on. I have a MySQL table that looks kind of like this
+---------+-------------+------+
| Content | Date Posted | Name |
+---------+-------------+------+
| Content | Date Posted | Name |
+---------+-------------+------+
And I need a PHP script to read the top 10 rows from the database, based on date posted.
You can use PHPMyAdmin to create tables, or run a script like this:
and select the newest 10 like this:
But while the answer seems small, it is actually a big question. Do you have no idea whatsoever? Maybe you should start by reading some tutorials if you don’t want to get stuck every time you need a little something from your database.