Re: [PHP] Is my syntax wrong?

2003-02-05 Thread Brian Dunning
On Tuesday, February 4, 2003, at 05:03 PM, John W. Holmes 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

RE: [PHP] Is my syntax wrong?

2003-02-05 Thread John W. Holmes
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

Re: [PHP] Is my syntax wrong?

2003-02-04 Thread 1LT John W. Holmes
The following code is giving me a parse error, unexpected T_STRING. $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); It's supposed to increment the value ad_id in the ads

Re: [PHP] Is my syntax wrong?

2003-02-04 Thread 1LT John W. Holmes
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,

Re: [PHP] Is my syntax wrong?

2003-02-04 Thread Brian Dunning
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

Re: [PHP] Is my syntax wrong?

2003-02-04 Thread Jason Wong
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

RE: [PHP] Is my syntax wrong?

2003-02-04 Thread John W. Holmes
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