|
|
|
ขอความช่วยเหลือด้วยครับ อัพเดทข้อมูลลงฐานข้อมูลไม่ได้ |
|
|
|
|
|
|
|
ตัวฟอร์มนะครับ
<Code (PHP)
?php
include("config.inc.php") ;
mysql_select_db($db) ;
$strSQL = "UPDATE member SET titleid = '".trim($_POST['titleid'])."'
,name = '".trim($_POST['name'])."',sex = '".trim($_POST['sax'])."',std_id = '".trim($_POST['std_id'])."',age = '".trim($_POST['age'])."'
,address = '".trim($_POST['address'])."',AMPHUR_ID= '".trim($_POST['AMPHUR_ID'])."',PROVINCE_ID = '".trim($_POST['PROVINCE_ID'])."'
,zipcode = '".trim($_POST['zipcode'])."'
,Phone = '".trim($_POST['phone'])."'WHERE Username = '".$_SESSION["Username"]."' ";
$objQuery = mysql_query($strSQL);
echo "Save Completed!<br>";
echo "<meta http-equiv='refresh' content='4; url=member_detail.php'>" ;
?>
Tag : PHP, CakePHP
|
|
|
|
|
|
Date :
2014-03-07 03:37:24 |
By :
bank |
View :
624 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
$objQuery = mysql_query($strSQL) or die(mysql_error());
|
|
|
|
|
Date :
2014-03-07 09:30:33 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|