birdieserver
Programmer
hi, does anyone know how to set variables to the newest added result in a table (table has timestamps)? ive tryed my own script but this is the furthest i could get..
$page1 = mysql_query("SELECT * FROM extrapages ORDER BY time_stamp_col DESC LIMIT 5");
I'm aware that this sets 5 of the results to one variable; is there any simple way to narrow it down so you can have 5 seperate variables which each have one different result.
Any ideas? thanks
$page1 = mysql_query("SELECT * FROM extrapages ORDER BY time_stamp_col DESC LIMIT 5");
I'm aware that this sets 5 of the results to one variable; is there any simple way to narrow it down so you can have 5 seperate variables which each have one different result.
Any ideas? thanks