我連接到數據庫,並希望選擇行中哪個tweetid在我的數組ID中但它給了我警告響應。這是我的代碼。應該心存感激,如果有人將有助於找到我的錯誤mysqli_fetch_array()警告
$con=mysqli_connect("localhost","root","6245","twitr");
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();}
$ids = join(',',$tweetids);
$result = mysqli_query($con,"SELECT * FROM tweet WHERE tweetid in $ids");
while($row = mysqli_fetch_array($result)) {}
mysqli_close($con);
我的警告是:
mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in
你是否真的認爲我們可以幫助,如果你甚至不打擾你發出警告的文字?我們不介意讀者... –