I am trying to run following code :
$con=mysqli_connect("localhost","root");
mysqli_select_db($con,"hellotune");
$sql="select email,password from register where email='".$email."' and password='".$password."'";
$result=mysqli_query($con,$sql);
$record=mysqli_num_rows($result);
But following error is occured:
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:\wamp64\www\HelloTune\login.php on line 38
Can anyone please tell me what is wrong in this code.
Thanking You.