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

Multilayer CSV to filtered excel -

Listboxes in c# -

ios - Why must I define variables twice in the Header file? -