I have this database Database Image and an array of user id
<?php
$users = array('0000000002','0000000003');
// I want to show only the post from these $users only..
// I came up with this query..
mysql_query("SELECT * FROM it_posts WHERE postOwner = '0000000002' OR postOwner = '0000000003'");
// but it will not display each post from the $users
?>
You are missing
mysql_fetch_arrayor other similar fetching functions. Your code should look like this:To get it even shorter, use the
INclause: