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
phpmyspace msql error
Moderator: General Moderators
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia
use the following to determine what your issue is:
Code: Select all
$sql = "SQL Statement here";
if (!mysql_query($sql)) {
die(mysql_error());
}- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: phpmyspace msql error
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.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
is_resource may be useful, though if it's not a resource from a query, it'll likely just be NULL.