|
 |
|
ช่วยแก้ หน่อยค่ะ คือว่ามันทำการแก้ไขข้อมูลชุดไม่ได้น่ะค่ะ ช่วยด้วยน่ะค่ะ งานเรา ฮือๆๆๆๆ |
|
 |
|
|
 |
 |
|
ฟอร์ม รับ
Code (PHP)
<?php
include "chksession.php";
include "connect.php";
$suite_id=$_POST['suite_id'];
$type_id=$_POST['type_id'];
$suite_size=$_POST['suite_size'];
$suite_image=$_POST['suite_image'];
$suite_detail=$_POST['suite_detail'];
$suite_price_rent=$_POST['suite_price_rent'];
$suite_price_cut=$_POST['suite_price_cut'];
$suite_amount=$_POST['suite_amount'];
$sql="update suite set type_id='$type_id',suite_size='$suite_size',suite_image='$suite_image' ,suite_detail='$suite_detail',suite_price_rent='$suite_price_rent',suite_price_cut='$suite_price_cut' ,suite_amount=$'suite_amount' where suite_id='$suite_id'";
$result=mysql_query($sql,$link);
if($result)
{
include "header.php";
echo "<center>บันทึกข้อมูลเรียบร้อยแล้ว</center>";
echo "<meta http-equiv=\"refresh\" content=\"3; url=addsuite.php\"/>";
include "footer.php";
}else{
include "header.php";
echo "<center>ไม่สามารถบันทึกข้อมูลได้ !</center>";
echo "<meta http-equiv=\"refresh\" content=\"3; url=frm_edit.php\"/>";
include "footer.php";
}
?>
|
 |
 |
 |
 |
Date :
2012-07-07 18:11:35 |
By :
kam |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
$result=mysql_query($sql,$link) or die (mysql_error());
ลองเช็คด้วยว่ามีค่าส่งมาครบหรือป่าว
|
 |
 |
 |
 |
Date :
2012-07-08 08:25:16 |
By :
บังเอิญผ่านมาเห็น |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|