Re: Re: Help: Database Search

From: Date: Sat, 13 Nov 2004 15:23:15 +0000
Subject: Re: Re: Help: Database Search
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-201915@lists.php.net to get a copy of this message
On Saturday 13 November 2004 22:14, Stuart Felenstein wrote: > > Summary: the missing single-quotes are the > > show-stopper. > > I see that , but I'm not sure how that is happening. > > Here is the sql: > > $sql = 'SELECT PostStart, JobTitle, Industry, > LocationState, VendorID > FROM VendorJobs > WHERE ' . implode( ' AND ', $where ); > // Is it the Where statement maybe ? OK, so $sql is built from $where, and what is $where built from? And so on. trace back up through your code examining each variable assignment. May I remind you of this very useful advice: http://marc.theaimsgroup.com/?l=php-general&m=109956779311140&w=2 Yes debugging is tedious but someone has to do it. Or alternatively: - write bug free code (not even Bill Gates can do that) - pay someone to debug it for you (my going rate is HKD600/hour) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Maternity pay? Now every Tom, Dick and Harry will get pregnant. -- Malcolm Smith */

« previous php.general (#201915) next »