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 derfloh 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
Joined
May 7, 2003
Messages
34
Location
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

Replies
2
Views
396
  • Locked
  • Question Question
Replies
2
Views
378
  • Locked
  • Question Question
Replies
19
Views
1K

Part and Inventory Search

Sponsor

Back
Top