Jump to content

id


andylord

Recommended Posts

i am getting the following error on page: http://cop-help.com/Testing/Redupdate.php

Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /customers/cop-help.com/cop-help.com/httpd.www/Testing/Redupdate.php  on line 10

 

$query= "SELECT * FROM Runesred WHERE id='$id'";
$result=mysql_query($query);
$num=mysql_numrows($result);

 

Line 10 is the the code above i am not sure why this is happening can anyone explain to me why this is happening :S

 

Link to comment
https://forums.phpfreaks.com/topic/198027-id/
Share on other sites

Change this and see what error comes up:

 

$result=mysql_query($query) or trigger_error("Query Failed: " . mysql_error());

 

 

Notice: Query Failed: No database selected in /customers/cop-help.com/cop-help.com/httpd.www/Testing/Redupdate.php on line 9

 

But i have connected and have tested the database connection to it

Link to comment
https://forums.phpfreaks.com/topic/198027-id/#findComment-1039085
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.