Re: Not a valid MySQL resource?

From: Date: Sat, 30 Mar 2002 18:14:23 +0000
Subject: Re: Not a valid MySQL resource?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-90796@lists.php.net to get a copy of this message
On Sunday 31 March 2002 02:02, Brian Waskiewicz wrote: > My page works fine from other computers - it just doesn't work from mine. > I think it could be that the page is caching and IE6 isn't getting a new > copy. How can I prevent it frlom caching? I've tried clearing my history, > but I still get the error. > > Thanks. > > "Rasmus Lerdorf" <rasmus@lerdorf.ca> wrote in message > news:Pine.LNX.4.44.0203300846590.5613-100000@christine.ca... > > > Always always always check your queries for errors before trying to use > > the result set. > > > > ie. > > > > $result = mysql_query($sql) or die(mysql_error()); > > > > (assuming you want a query failure to be a fatal error) Hmmm, Rasmus has given you some very good advice. Please follow it. No point speculating on how to correct the problem if you don't know what the problem is. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen */

« previous php.general (#90796) next »