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 Quote 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. Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.