Re: Is my syntax wrong?

From: Date: Tue, 04 Feb 2003 18:32:03 +0000
Subject: Re: Is my syntax wrong?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134310@lists.php.net to get a copy of this message
On Wednesday 05 February 2003 01:30, Brian Dunning wrote: > I think we are almost there. This code is not producing an error, but > it is also not incrementing the database. The value stays at zero. Any > idea what could be wrong? > > $inc_current_ad = WrapMySQLDatabaseResults("macasap", "update ads where > ad_id = ".$current_ad->Value("ad_id")." set > rotate=".($current_ad->Value("rotate")+1), > "block=0","inc_current_ad"); Assign your query ("update ads where ...") to a variable, print it out, check whether it looks good, _then_ plug it into WrapMySQLDatabaseResults(). -- 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 ------------------------------------------ /* Guillotine, n.: A French chopping center. */

« previous php.general (#134310) next »