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
Post a Comment