|
 |
|
ทำไมเวลาแสดง error ข้อมูลถึงหายไป ทำไม เวลา แสดง error ข้อมูล ถึง หายไป บ้าง ครั้ง ก็ไม่หาย มี ทิป ดีๆ บอกไหม ค่ะ |
|
 |
|
|
 |
 |
|
ทำไม เวลา แสดง error ข้อมูล ถึง หายไป บ้าง ครั้ง ก็ไม่หาย มี ทิป ดีๆ บอกไหม ค่ะ
เช่น
<?php //สาเหตุที่ไม่ใช้ checkSession_admin เพราะว่า หน้านี้ admin เท่านั้นที่สามารถใช้ได้
session_start();
if($statusCheck!="admin"){
header("Location: ../index.php");
}
include('../check.php');
include('admin_menu.php');
?><?php require_once('../Connections/Model.php'); ?>
<?php
if(isset($HTTP_POST_VARS["Submit"])&&($HTTP_POST_VARS["Submit"]=="เพิ่ม")){
//เพิ่มข้อมูลในตาราง
mysql_select_db($database_Model, $Model);
$insertmodeltypes = "INSERT INTO chang (Cha_Date,Emp_Id) VALUES ('$yy1,$mm1,$dd1','$emp')";
$Chaultmodeltypes = mysql_query($insertmodeltypes, $Model) or die(mysql_error());
//if(Chaultmodeltypes<>0)
//{
mysql_select_db($database_Model, $Model);
$Query="select * from chang order by Cha_Id desc";
$reCha_Id=mysql_query($Query,$Model)or die(mysql_error());
$row_rsCha_Id=mysql_fetch_assoc($reCha_Id);
$id_cha=$row_rsCha_Id['Cha_Id'];
//}
$insertmodeltypes2 ="INSERT INTO chang_detail (Cha_No,Cha_Id,Char_qty,Cha_status,Receive_No,Receive_Id,Order_Id,Order_No,Pro_Id) VALUES ('$number','$id_cha','$qty','$status','$Nre','$receive','$Nor','$order','$pro')";
$Chaultmodeltypes2 = mysql_query($insertmodeltypes2, $Model) or die(mysql_error());
if($Chaultmodeltypes2<>0)
{
print "<meta http-equiv='refresh' content='0;URL=bill_change_detail.php'>";
}
}
?>
ขอบคุณ ค่ะ
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
12 ก.ย. 2548 08:09:28 |
By :
jik |
View :
2361 |
Reply :
0 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
|
|

|
Load balance : Server 01
|