我已經使用查詢如下更新數據庫查詢工作不使用PHP
$q = mysql_query("UPDATE `payment_details` SET `txnid`='{$txnid}',`amount`='{$amount}',`email`='{$email}',`firstname`='{$firstname}',`phone`='{$phone}',`productinfo`='{$productinfo}'
WHERE `id`='{$id}' ")
OR die(mysql_error());
$ id = $ _ POST ['id']; \t $ firstname = $ _ POST ['firstname']; \t $ email = $ _ POST ['email']; \t $ phone = $ _ POST ['phone']; \t $ productinfo = $ _ POST ['productinfo']; \t $ service_provider = $ _ POST ['service_provider']; \t $ amount = $ _ POST ['amount']; \t $ txnid = $ _ POST ['txnid']; \t $ productinfo = $ _ POST ['productinfo']; \t $ surl = $ _ POST ['surl']; \t $ furl = $ _ POST ['furl']; – nsing
你爲什麼使用'{}'? –
你得到的錯誤是什麼? – urfusion