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);?> 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) 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! 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
Archived
This topic is now archived and is closed to further replies.