Hi Nick,

> I am new to php and that the folowing error: 
> Warning: mysql_num_rows(): supplied argument 
> is not a valid MySQL result resource in
> /home/tbonestu/public_html/smallimages.php
> 
> i dont know what i am doing wrong here is the code:
> 
>  @ $db = mysql_pconnect(connect info);

Along with the other suggestions to check your $query variable, you should
change this line to :

$db = @mysql_pconnect($whatever);

The @ goes in front of the function call, not the variable, if you want to
suppress any potential error messages generated by the function.


Cheers
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to