Re: 5 hours later - sql error.

From: Date: Fri, 03 Dec 2004 11:50:39 +0000
Subject: Re: 5 hours later - sql error.
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37542@lists.php.net to get a copy of this message
John! Your the man! It works! if (!empty(var)) Excellent. I think this is a good lesson in isset. I assumed they were the same. I guess reading the manual more would help. Thank you. Stuart > --- John Holmes <holmes072000@charter.net> wrote: > > > You need to check if $stateReloc2, etc are empty() > > instead of set. > > If the variable is set, but empty, you're going to > > end up with a > > query like "Prof.State1 IN ()" which will cause > your > > error, which > > we would have seen if you'd just posted the > query... > > > > I should probably ask - > is this the way to use if(!empty(var)) ? > > Stuart > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.db (#37542) next »