Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in D:\Apache2\new_site\sub.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at D:\Apache2\new_site\sub.php:47) in D:\Apache2\new_site\sub.php on line 764

Warning: mysqli_close() expects parameter 1 to be mysqli, null given in D:\Apache2\new_site\sub.php on line 766