PHP] error message while mysqling on php
I see two things that could be it.
#1 your $result is not $result = mysql_query("queryline");
Or #2 your syntax on your query line is bad.
You can try doing something like this:
$query = "SELECT * FROM table etc blah";
$resul
3:05 PM
To: 'Michal Krezolek'; php-general@lists.php.net
Subject: RE: [PHP] error message while mysqling on php
> I have received an error: Warning: mysql_num_rows(): supplied argument is
> not a valid MySQL result resource in /home/www/mksystem.net when trying to
> execute $num
> I have received an error: Warning: mysql_num_rows(): supplied argument is
> not a valid MySQL result resource in /home/www/mksystem.net when trying to
> execute $num = mysql_num_rows($result);
>
> Please go to http://mksystem.net/phpinfo.php and tell me whether it is due
> to the version of php
[snip]
I have received an error: Warning: mysql_num_rows(): supplied argument is
not a valid MySQL result resource in /home/www/mksystem.net when trying to
execute $num = mysql_num_rows($result);
[/snip]
Post a little code and we might be able to help you. It is likely that
$result is not the vari
4 matches
Mail list logo