22
Jun
Jun
Display latest 5 mysql results
Using auto_increment in an’ id’ column in my mysql database, I want to display the 5 newest entries in this table
PHP Code:
$select = mysql_query(“SELECT * FROM recent_updates ORDER BY id DESC LIMIT 0,5″);
$row = mysql_fetch_array($select);
echo
‘<p>’ . $row[‘date’] . ‘</p>
<p>’ . $row[‘update_text’] . ‘</p>’;
That only shows the newest one result, even though I’ve set the limit correct (i think) :confused:
Can someone help me?
30,000 Mb And Unlimited Bandwidth Only $3.75/mo.
Powered By: BigInfo.org
Relevant Links

