 |
|
พี่คนไหนเก่งช่วยดู Code update ให้ผมที ว่าทำไม ข้อมูลใน ฐานมันไม่เปลี่ยน แต่พอรันแล้ว มัน ขึ้น update complete แต่ข้อมูลในฐานมันไม่เปลี่ยน ช่วยด้วยค้าบ ๆ T^T
Code (PHP)
<?php
require_once("connect.php");
mysql_connect("localhost","root","1234") or die (mysql_error());
mysql_select_db("resort");
$strSQL = "UPDATE customer ";
$strSQL .="SET tf_firstn = '".$_POST["tf_firstn"]."' , tf_lastn = '".$_POST["tf_lastn"]."' , tf_add2 = '".$_POST["tf_add2"]."' , sl_pro2 = '".$_POST["sl_pro2"]."' , tf_zcode2 = '".$_POST["tf_zcode2"]."' , tf_mobile = '".$_POST["tf_mobile"]."' , tf_mail = '".$_POST["tf_mail"]."' WHERE cus_id = '".$_GET["cus_id"]."'";
mysql_query($strSQL);
echo "<center><img src='./img/logo.jpg' width='222' height='152'><p>";
echo "Update Complete</center>";
echo "<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1; URL=showcustomer.php?status=failue\">";
mysql_close();
?>
Tag : PHP, MySQL, HTML/CSS, CakePHP
|
|
 |
 |
 |
 |
Date :
2012-08-04 19:17:17 |
By :
kimhunzx |
View :
1000 |
Reply :
4 |
|
 |
 |
 |
 |
|
|
|
 |