Hello I am making a website in php, and mysql, and I am getting this error at the top of one of the pages, does anyone know what it means, and how to fix it? Thanks alot!
The error is: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/halescom/public_html/FBLA_Reservation/providerinfo.php on line 15
//This is the MySQL Information
$username="**";
$password="*****";
$database="****";
//This tells to connect to the MySQL Database, via the provided information above
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
//The query is to insert data into the "Info" table
$query = "INSERT INTO `txtusers` (`mobile`) VALUES ('$num')";
//$result = mysql_query($query);
mysql_close();
Hello I am making a website in php, and mysql, and I am getting this error at the top of one of the pages, does anyone know what it means, and how to fix it? Thanks alot!
The error is: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/halescom/public_html/FBLA_Reservation/providerinfo.php on line 15
This often means that the mySQL query returned no results, yet the code is attempting to process or use the results anyway.