ช่วยด้วยครับ ผมติด Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\AppServ\www\project\chksellgoods.php on line 55
error มันขึ้นแบบนี้อ่าครับ
Parse error: syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\AppServ\www\project\chksellgoods.php on line 55
Code (PHP)
$sql3 = "INSERT INTO order_detail (order_id, good_id, user_id, num_good, price, date_order)
VALUES ('$objquery2["order_id"]', '$objqueryg["good_id"]', '$user', '1', '$objqueryg["price"]', '$date') ";
Tag : PHP, MySQL
Date :
2011-03-03 10:30:18
By :
zimmpooh
View :
1133
Reply :
4
Code (PHP)
$sql3 = "INSERT INTO order_detail (order_id, good_id, user_id, num_good, price, date_order)
VALUES ('". $objquery2["order_id"] . "', '". $objqueryg["good_id"] . "', '". $user . "', '1', '". $objqueryg["price"] . "', '". $date . "') ";
Date :
2011-03-03 10:33:02
By :
PlaKriM
ขอบคุณครับ
แต่ผมยังติดตัวนี้อยู่อะครับ
Parse error: syntax error, unexpected T_VARIABLE in C:\AppServ\www\project\chksellgoods.php on line 55
code ครับ
Code (PHP)
$sql3 = "INSERT INTO order_detail (order_id, good_id, user_id, num_good, price, date_order) VALUES ('".$objquery2["order_id"]."', '$goodid', '$user', '1', '."$objqueryg["price"]."', '$date') ";
ประวัติการแก้ไข 2011-03-03 16:30:46
Date :
2011-03-03 16:29:29
By :
zimmpooh
$sql3 = "INSERT INTO order_detail (order_id, good_id, user_id, num_good, price, date_order) VALUES ('".$objquery2['order_id']."', '$goodid', '$user', '1', '".$objqueryg['price']."', '$date') ";
ลองดูใหม่
Date :
2011-03-03 16:50:48
By :
heng
ขอบคุณครับ ได้แล้วครับ
Date :
2011-03-03 17:12:05
By :
zimmpooh
Load balance : Server 03