Hello, I have a table with fields named downloads id, title, author, style. And I would like to show my site in php code to print on screen the last 5 records added. Can anyone give me the full code? Thank you very much everyone.
run a query pulling like this:
[php]$q = mysql_query(“SELECT * FROM table ORDER BY id DESC LIMIT 5”);
while($r = mysql_fetch_object($q)){
//output rows here like
echo “
$r->title
”;}[/php]