Isn't displaying any information. Getting errors and i'm really not sure why? Thanks.
<?php
$mysqli = new mysqli("localhost", "root", "", "insuredcars");
if ($_POST['formcar'] == '1' || $_POST['formage'] == '18' || $_POST['formNCD'] == '0' || $_POST['formPoints'] == '0' )
$query = $mysqli->query("SELECT * FROM insurance WHERE insuranceid = '1'");
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['insuranceprice'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysql_close($con);
?>
The errors im getting: Notice: Undefined variable: result in C: on line 8
Warning: mysql_fetch_row() expects parameter 1 to be resource, null given in C:\xampp\htdocs\search.php on line 8
Notice: Undefined variable: con in C: on line 16
Warning: mysql_close() expects parameter 1 to be resource, null given in C: on line 16