Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax Error

Status
Not open for further replies.

kamloops

Programmer
May 7, 2003
34
0
0
CA
Hi there,

Can anyone tellme what the syntax error is in this code:

$db->query("UPDATE user SET status = 'Y', extend = 'N', expiration_date = DATE_ADD(now(), INTERVAL $res2[months] MONTH), paypal_transaction_id = '$transaction_id[$value]' WHERE user_id = '$value'");

Thank you
 
$db->query("UPDATE user SET status = 'Y', extend = 'N', expiration_date = DATE_ADD(now(), INTERVAL '$res2[months]' MONTH), paypal_transaction_id = '$transaction_id[$value]' WHERE user_id = '$value'");

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top