我有這個數據庫Database Image和用戶ID的數組MySQL查詢問題
<?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
?>
我真的不喜歡'mysql_fetch_array',我寧願推薦'mysql_fetch_assoc',因爲它更高效。 – 2010-08-15 17:30:02