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. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php