我正在尝试运行以下查询,但它似乎无法正常工作,并且出现错误:
Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\VACANCY\pages\search\booking2.php on line 83
这是同时:
$row = mysqli_fetch_row($Result)
我只想从我的桌子上返回选择的JOB_TITLE
AND 。请任何帮助都会很棒,因为我花了几个小时试图解决它。LOCATION
jobs
<?php
$Query = "(SELECT FROM jobs " .
"WHERE jobs.JOB_TITLE ='$_POST[JOB_TITLE]' " .
"AND jobs.LOCATION = '$_POST[LOCATION]')";
$Result = mysqli_query($DB, $Query);
while ($row = mysqli_fetch_row($Result))
{
echo $row['JOB_TITLE'] . " " . $row['LOCATION'];
echo "<br />";
}
?>