 |
|
Code (PHP)
<?
include("connect.php");
$strSQL = mysql_query("UPDATE student SET term1_1='".$_POST["term1_1"]."',adddata_1='".$_POST["adddata_1"]."', adddata_2='".$_POST["adddata_2"]."',adddata_3='".$_POST["adddata_3"]."', adddata_4='".$_POST["adddata_4"]."',adddata_5='".$_POST["adddata_5"]."', adddata_6='".$_POST["adddata_6"]."',adddata_7='".$_POST["adddata_7"]."', adddata_8='".$_POST["adddata_8"]."',day_print='".$_POST["day_print"]."', mount_print='".$_POST["mount_print"]."',year_print='".$_POST["year_print"]."',to_print='".$_POST["to_print"]."',the_print='".$_POST["the_print"]."' WHERE id='".$_GET["id"]."' ") or die(mysql_error());
if($strSQL){
echo"<script>";
echo"alert('เพิ่มรายการเรียบร้อยเเล้ว');";
echo"location.href='AdvancePrint.php';";
echo"</script>";
exit("");
}else{
echo "error";
}
mysql_close($objConnect);
?>
Tag : PHP, MySQL, JavaScript, CakePHP
|
|
 |
 |
 |
 |
Date :
2012-06-07 12:06:51 |
By :
harmunza |
View :
1043 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |