>Something is still not right. Now I'm getting unexpected
>T_CONSTANT_ENCAPSED_STRING when using:
>
>$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");

The problem is your addition, you need another set of paranthesis around the
whole operation.

This will produce your same error:

$test = "the value is " . $c+1 . " dollars";

whereas this won't:

$test = "the value is " . ($c+1) . " dollars";

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to