RE: query works fine on console but not with PHP - why? SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi and thanks,

Actually.. there was a typo in an if() statement just prior to it that
checked to see if a variable was set before proceeding with the query.

What a dumb-ass I am. You know you've been working way to long when you
can't do simple things.

Thanks for your comments!

Aaron

-----Original Message-----
From: Matt [mailto:hj611@epooch.com] 
Sent: August 3, 2003 10:11 AM
To: Aaron Wolski; php-db@lists.php.net
Subject: Re:  query works fine on console but not with PHP -
why?


----- Original Message ----- 
From: "Aaron Wolski" <aaronjw@martekbiz.com>
To: <php-db@lists.php.net>
Sent: Sunday, August 03, 2003 9:59 AM
Subject:  query works fine on console but not with PHP - why?
> The error I am getting on the browser is:
>  
> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
> result resource in http://www.martekbiz.com/KCS/utils.inc on line 52
>  
> Anyone have an idea as to what it up?

Try:
echo mysql_error();

 and see what mysql says.




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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux