jwk811 Posted February 22, 2010 Share Posted February 22, 2010 $sql = "SELECT message_id, user_name, message, date_format(post_time, '%h:%i') as post_time" . " FROM message WHERE chat_id = " . db_input($_GET['chat']) . " AND message_id > " . $last; whereever i put in LIMIT 10 is doesnt work??? Quote Link to comment Share on other sites More sharing options...
jwk811 Posted February 22, 2010 Author Share Posted February 22, 2010 needed a space before the " LIMIT 10" at the end. nvm Quote Link to comment Share on other sites More sharing options...
salih0vicX Posted February 22, 2010 Share Posted February 22, 2010 $sql = 'SELECT message_id, user_name, message, date_format(post_time, "%h:%i") as post_time ' . 'FROM message WHERE chat_id = ' . db_input($_GET['chat']) . ' AND message_id > ' . $last .' LIMIT 10' Quote Link to comment 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.