Jump to content

[SOLVED] mysql query


ShaolinF

Recommended Posts

Hi Guys,

 

Keep getting Parse error: syntax error, unexpected T_VARIABLE for the following

 

mysql_query("INSERT INTO purchase (pp_txn_id, pp_payment_date, pp_pending_reason) 
VALUES ('".$_POST['txn_id']."', '".$_POST['payment_date']."', '".$_POST['pending_reason']."') 
WHERE purchaseid = '"$_POST['invoice']"' ") or die ($error = mysql());

 

The error is pointing to the third line of code.

Link to comment
https://forums.phpfreaks.com/topic/88797-solved-mysql-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.