警告:mysqli_fetch_array()期望參數1爲mysqli_result,在D:\ WebShare \ Students \ Term \ 3Winter \ PHP中給出的布爾值\ 5335-40 \ RosenthalD \ enterpreferences.php上線59我從我的PHP應用程序下面列出了以下警告,我想知道如何解決它:
CODE(線59加粗並與WHILE開始:
$query="SELECT NewUsedID FROM zlu_newused
WHERE CustomerID=" . $_SESSION['CustomerID2Update'] ; // Build the query
$rs = @mysqli_query ($dbc, $query); // Return the Result Set
WHILE ($row = mysqli_fetch_array($rs, MYSQLI_ASSOC)) { // Fetch the data
$NewUsedID = $row['NewUsedID'];
switch ($NewUsedID) {
case 1:
$rdoneworusedChecked1 = "CHECKED" ;
break;
case 2:
$rdoneworusedChecked2 = "CHECKED" ;
break;
case 3:
$rdoneworusedChecked3 = "CHECKED" ;
break;
}
}