sharke Posted November 24, 2009 Share Posted November 24, 2009 How can get query from two id's. with this code i get query only from id 10, but i need with same commands get query for ID (10 and 11) <?php $result = mysql_query("SELECT * FROM comments WHERE comment_id='10' ORDER BY DESC"); $date = mysql_fetch_array($result);?> Quote Link to comment https://forums.phpfreaks.com/topic/182804-get-query-from-two-ids/ Share on other sites More sharing options...
Mchl Posted November 24, 2009 Share Posted November 24, 2009 WHERE comment_id IN (10,11) Quote Link to comment https://forums.phpfreaks.com/topic/182804-get-query-from-two-ids/#findComment-964839 Share on other sites More sharing options...
sharke Posted November 24, 2009 Author Share Posted November 24, 2009 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/182804-get-query-from-two-ids/#findComment-964851 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.