phpmyspace msql error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saghir
Forum Newbie
Posts: 1
Joined: Fri Aug 03, 2007 2:45 am

phpmyspace msql error

Post by saghir »

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 44

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 52

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 78

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 79


does anyone know why this happend please or any idea how i can fix this.

thankyou very much for your help
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

use the following to determine what your issue is:

Code: Select all

$sql = "SQL Statement here";

if (!mysql_query($sql)) {
die(mysql_error());
}
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: phpmyspace msql error

Post by superdezign »

saghir wrote:Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 44

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 52

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 78

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rayyan01/public_html/italkonphone/functions.php on line 79
Errors without code are generally useless. It IS obvious, however, that you don't check your resources before using them. Always check all variables before using them.

is_resource may be useful, though if it's not a resource from a query, it'll likely just be NULL.
Post Reply