Mysql ASC function ORDER only first ID's -


i have line:

$query = mysql_query(" select * livechat type='public' order id asc limit 15") ;

and chat, asc takes first id comments, shows 15 old comments (id1, id2 , on). if use "desc" instead of asc, shows new comments, in bad way - newest @ top, since chat, newest comments must @ bottom.

try this:

$query = mysql_query("select * ( select * livechat type='public' order id desc limit 15 ) t order t.id") ;


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -