|
|
|
PHP MySQL - Query ไม่ผ่าน ช่วยดูหน่อยครับ งง |
|
|
|
|
|
|
|
ตาราง
s_no int 3
s_id varchar 5
s_name varchar 100
s_date varchar 50
s_price int 10
s_status varchar 10
|
|
|
|
|
Date :
2014-02-07 10:47:44 |
By :
bankbang |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
คุณลืมใส่ '
Code (PHP)
$strSQL = "UPDATE course SET s_id = '".trim($_POST['sid'])."',
s_name = '".trim($_POST['sname'])."',
s_date = '".trim($_POST['sdate'])."',
s_price = '".trim($_POST['sprice'])."',
s_status = '".trim($_POST['statuus'])."',
WHERE s_no = '$_REQUEST[mid]' ";
$objQuery = mysql_query($strSQL);
|
|
|
|
|
Date :
2014-02-07 10:54:41 |
By :
arm8957 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|