Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,031

HOME > PHP > PHP Forum > มีปัญหาเรื่องค่า error ของ page ครับ ผมติดปัญหาเรื่อง php การ back กับโดยใช้ internet Explorer



 

มีปัญหาเรื่องค่า error ของ page ครับ ผมติดปัญหาเรื่อง php การ back กับโดยใช้ internet Explorer

 



Topic : 016483

Guest




ผมติดปัญหาเรื่อง php การ back กับโดยใช้ internet Explorer นะครับ
<?
require_once('../Connections/connect_ram.php');
if(isset($HTTP_POST_VARS["submit"]))
{
if ($m_start<10){$m_st="0".$m_start;} else{$m_st=$m_start;}
if ($m_end<10){$m_ed="0".$m_end;} else{$m_ed=$m_end;}
if ($start_date<10){$d_st="0".$start_date;} else{$d_st=$start_date;}
if ($end_date<10){$d_ed="0".$end_date;} else{$d_ed=$end_date;}
$sql1 = "SELECT * FROM store WHERE dep_id = '$depart' AND store_name = '$store_name'";
$Recordset = mysql_query($sql1, $connect_ram) or die(mysql_error());
$record1=mysql_fetch_array($Recordset);
$store=$record1[store_id];
$Stotal=0;
$Qtotal=0;
if($depart=="" and $store=="" )
{
$mstart=month($m_start);
$mend=month($m_end);
echo"<h3><center>รายงานการขายทั้งหมดตามห้างสรรพสินค้า </center></h3>";
echo" ตั้งแต่วันที่ $start_date เดือน $mstart ถึงวันที่ $end_date เดือน $mend ปี$year_st
<table width = '80%' border='1' >
<tr bgcolor='#D2E9FF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>ห้าง</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>ยอดขาย</font></b></center></td>
</tr>";
$sql5 = 'SELECT * FROM department ';
$Recordset_depart = mysql_query($sql5, $connect_ram) or die(mysql_error());
while($record2=mysql_fetch_array($Recordset_depart))
{
$dep_id=$record2[dep_id];
$dep_name=$record2[dep_name];
$sql2 = "SELECT * FROM sale_report WHERE dep_id like '$dep_id'";
$Recordset3 = mysql_query($sql2, $connect_ram) or die(mysql_error());
while($record=mysql_fetch_array($Recordset3))
{
$sale_amount=$record[sale_amount];
$sale_date=$record[sale_date];
$month1 =$record[sale_month];
$year=substr("$sale_date",0,4);
$date=substr("$sale_date",8,2);
if($year==$year_st)
{
if(($month1==$m_start and $month1==$m_end) ||($m_start<=$month1 and $month1<=$m_end ))
{
if(($date==$start_date and $date==$end_date) || ($start_date<=$date and $date<=$end_date))
{
$Stotal=$Stotal+$sale_amount;
}
}
}
}//end while
echo"
<tr bgcolor='#FFFFFF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'><a href='Ssaledep_pro.php?dep_id=$dep_id$year_st$m_st$m_ed$d_st$d_ed'>$dep_name</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$Stotal</font></b></center></td>
</tr>";
$NStotal=$NStotal+$Stotal;
$Stotal=0;
}//end while
echo"
<tr bgcolor='#D2E9FF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>บอดรวม</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$NStotal</font></b></center></td>
</tr>";
}
Elseif($store=="" )
{
$mstart=month($m_start);
$mend=month($m_end);
$sqldep = "SELECT * FROM department WHERE dep_id like '$depart'";
$Recdep = mysql_query($sqldep, $connect_ram) or die(mysql_error());
$recorddep=mysql_fetch_array($Recdep);
$dep_name=$recorddep[dep_name];
echo"<h3><center>รายงานการขายตามห้างสรรพสินค้า $dep_name</center></h3>";
echo" ตั้งแต่วันที่ $start_date เดือน $mstart ถึงวันที่ $end_date เดือน $mend ปี$year_st
<table width = '80%' border='1' >
<tr bgcolor='#D2E9FF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>สาขา</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>ยอดขาย</font></b></center></td>
</tr>";
$sql5 = "SELECT * FROM store WHERE dep_id like '$depart'";
$Recordset_depart = mysql_query($sql5, $connect_ram) or die(mysql_error());
while($record2=mysql_fetch_array($Recordset_depart))
{
$store_id=$record2[store_id];
$store_name=$record2[store_name];
$sql2 = "SELECT * FROM sale_report WHERE store_id like '$store_id'";
$Recordset3 = mysql_query($sql2, $connect_ram) or die(mysql_error());
while($record=mysql_fetch_array($Recordset3))
{
$sale_amount=$record[sale_amount];
$sale_date=$record[sale_date];
$month1 =$record[sale_month];
$year=substr("$sale_date",0,4);
$date=substr("$sale_date",8,2);
if($year==$year_st)
{
if(($month1==$m_start and $month1==$m_end) ||($m_start<=$month1 and $month1<=$m_end ))
{
if(($date==$start_date and $date==$end_date) || ($start_date<=$date and $date<=$end_date))
{
$Stotal=$Stotal+$sale_amount;
}
}
}
}//end while
echo"
<tr bgcolor='#FFFFFF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'><a href='Ssalepro_store.php?store_id=$store_id$year_st$m_st$m_ed$d_st$d_ed'>$store_name</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$Stotal</font></b></center></td>
</tr>";
$NStotal=$NStotal+$Stotal;
$Stotal=0;
}//end while
echo"
<tr bgcolor='#D2E9FF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>บอดรวม</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$NStotal</font></b></center></td>
</tr>";
}
else
{
$mstart=month($m_start);
$mend=month($m_end);
$sqldep = "SELECT * FROM department WHERE dep_id like '$depart'";
$Recdep = mysql_query($sqldep, $connect_ram) or die(mysql_error());
$recorddep=mysql_fetch_array($Recdep);
$dep_name=$recorddep[dep_name];
$sqlstore = "SELECT * FROM store WHERE store_id like'$store'";
$Rec_store = mysql_query($sqlstore, $connect_ram) or die(mysql_error());
$record_store=mysql_fetch_array($Rec_store);
$store_name=$record_store[store_name];
echo"<h3><center>รายงานการขายตามห้างสรรพสินค้า $dep_name สาขา $store_name</center></h3>";
echo" ตั้งแต่วันที่ $start_date เดือน $mstart ถึงวันที่ $end_date เดือน $mend ปี$year_st
<table width = '80%' border='1' >
<tr bgcolor='#D2E9FF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>รุ่น</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>จำนวน</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>ยอดขาย</font></b></center></td>
</tr>";
$sql5 = 'SELECT * FROM category ';
$Recordset_cate = mysql_query($sql5, $connect_ram) or die(mysql_error());
while($record2=mysql_fetch_array($Recordset_cate)){
$cat_id=$record2[cat_id];
$cat_name=$record2[cat_name];
$sql2 = "SELECT * FROM sale_report WHERE cat_id like '$cat_id' and store_id = '$store'";
$Recordset3 = mysql_query($sql2, $connect_ram) or die(mysql_error());
while($record=mysql_fetch_array($Recordset3)){
$sale_amount=$record[sale_amount];
$sale_quanlity=$record[sale_quanlity];
$sale_date=$record[sale_date];
$month1 =$record[sale_month];
$year=substr("$sale_date",0,4);
$date=substr("$sale_date",8,2);
if($year==$year_st)
{
if(($month1==$m_start and $month1==$m_end) ||($m_start<=$month1 and $month1<=$m_end ))
{
if(($date==$start_date and $date==$end_date) || ($start_date<=$date and $date<=$end_date))
{
$Qtotal=$Qtotal+$sale_quanlity;
$Stotal=$Stotal+$sale_amount;
}
}
}
}
echo"
<tr bgcolor='#FFFFFF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'><a href='Ssalecat.php?cat_id=$cat_id$year_st$m_st$m_ed$d_st$d_ed$store'>$cat_name</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$Qtotal</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$Stotal</font></b></center></td>
</tr>";
$NStotal=$NStotal+$Stotal;
$NQtotal=$NQtotal+$Qtotal;
$Stotal=0;
$Qtotal=0;
}//end while
echo"
<tr bgcolor='#D2E9FF'>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>บอดรวม</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$NQtotal</font></b></center></td>
<td width='15%'><center><b><font size='2' face='MS Sans Serif'>$NStotal</font></b></center></td>
</tr>";
}
echo "</table>";
}
echo" <a href='sum_sale_depart.php'>กลับสู่หน้าหลัก</a>"
?>
รายละเอียดจะประมาณนี้นะครับ แต่ถ้าผมจะกด back กลับโดยใช้ <--- ของ internet Exploere มันจะขึ้น error ตามที่บอกไว้นะครับ จะต้องกด Refresh อีกรอบค่าเก่าถึงจะกลับมา ผมอยากถามว่าทำอย่างไงไม่ให้ขึ้น error ขึ้นมาอีกนะครับ
ให้สามารถย้อนกลับไปดูหน้าเก่าได้ แต่ติด error อย่างนี้นะครับ
Webpage has expired

Most likely cause:
The local copy of this webpage is out of date, and the website requires that you download it again.

What you can try:
Click on the Refresh button on the toolbar to reload the page. After refreshing, you might need to navigate to the specific webpage again, or re-enter information.

ต้องทำอย่างไงนะครับ
ฃ่วยบอกวิธีแก้ด้วยได้ไหมครับ



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 7 พ.ย. 2550 18:00:22 By : kri View : 1662 Reply : 0
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : มีปัญหาเรื่องค่า error ของ page ครับ ผมติดปัญหาเรื่อง php การ back กับโดยใช้ internet Explorer
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 03
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่