How do I pull the latest x amount of entries from a mysql table and then display it in an html table, using PHP?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume your table looks something like this:
So when you retrieve the latest four reviews, it would probably use a query that looks like this:
If you only use a date to order them, then replace
review_idwithcreated.As for putting it in a table, here is a guide to making tables in HTML.