When I retriwe data from mysql I got an error saying "Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htd ocs\xxxr\xxx.ph p on line 34". Please help me.
Code:
$sql="SELECT VehicleMake,VehicleType FROM vehicles WHERE VehicleType=$type AND VehicleMake=$make";
echo $sql;
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo $row['VehicleMake'] . " " . $row['VehicleType'];
echo "<br />";
}
Comment