RE: [PHP] warning
| From: | Sander Pilon | Date: | Tue, 17 Oct 2000 13:05:51 +0000 |
| Subject: | RE: [PHP] warning | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20613@lists.php.net to get a copy of this message | ||
use mysql_error() after the mysql_query() call, you obviously have a mysql
error somewhere.
> -----Original Message-----
> From: hennink@patrijs.max.nl [mailto:hennink@patrijs.max.nl]
> Sent: 17 October 2000 14:55
> To: tony
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] warning
>
>
> Well,
>
> if you're sure the code is working fine just ignore the errormessage.
> Another trick maybe setting the errorlevel in PHP to a lower level.
> error_reporting(1); will work for that page, or try to edit your php.ini.
>
> Tijmen
> On Tue, 17 Oct 2000, tony wrote:
>
> > Hello people!
> >
> > I have a problem with mysterious warning..
> > I have following code:
> >
> > $sql = "select * from some_table where ID=$ID";
> > $results = mysql_query($sql);
> > $array = mysql_fetch_rows($results);
> > .
> > .
> > .
> > above code is working perfectly, but it gives following warning:
> > Warning: Supplied argument is not a valid MySQL result resource in
> > ./mysql.php3 on line 166
> > I can't seem to find anything wrong.. Please let me know if you have
> > encountered such warning.
> > Again, the code seems to be working fine and generating correct outputs.
> >
> >
> > Thanks!
> >
> >
> > Tony
> >
>
> --
> Customer: I'm running Windows '98
> Tech: Yes.
> Customer: My computer isn't working now.
> Tech: Yes, you said that.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>