pmiller624 Posted March 17, 2009 Share Posted March 17, 2009 how would i read from a database backwards with a while loop my php reads an id in the database and I wan't it to put id number 1 and the bottem and go up Link to comment https://forums.phpfreaks.com/topic/149897-solved-read-from-mysql-database-backwards/ Share on other sites More sharing options...
corbin Posted March 17, 2009 Share Posted March 17, 2009 ORDER BY id DESC. Link to comment https://forums.phpfreaks.com/topic/149897-solved-read-from-mysql-database-backwards/#findComment-787202 Share on other sites More sharing options...
pmiller624 Posted March 17, 2009 Author Share Posted March 17, 2009 vague but thanks for the help Link to comment https://forums.phpfreaks.com/topic/149897-solved-read-from-mysql-database-backwards/#findComment-787209 Share on other sites More sharing options...
corbin Posted March 18, 2009 Share Posted March 18, 2009 Don't see how that was vague.... Googling MySQL ORDER BY would have brought up a long manual page that would explain it. I simply provided a real life example. But, no problem ;p. Link to comment https://forums.phpfreaks.com/topic/149897-solved-read-from-mysql-database-backwards/#findComment-787255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.