header('location: myfile.php?data1=value1&data2=value2');
header('location: add_redeem?pro_id='.$pro_id.'&c_id='.$c_id);
$pro_id= $_GET['pro_id']; $c_id=$_GET['c_id'];
<? include "Dbconnect.php"; /* $SQL = "SELECT * from product WHERE pro_id='$pro_id' "; $result = mysql_query( $SQL ); $fetcharry=mysql_fetch_array($result); $SQL = "SELECT * from cus WHERE pro_id='$pro_id' "; $result = mysql_query( $SQL ); $fetcharry=mysql_fetch_array($result); */ $sql="select * from redeem inner join customer on redeem.c_id=customer.c_id"; $result = mysql_query( $sql ); $fetcharry=mysql_fetch_array($result); $c_id=$fetcharry['c_id']; echo mysql_error(); $sql1="select * from redeem inner join product on redeem.pro_id=product.pro_id"; $result1 = mysql_query( $sql1 ); $fetcharry1=mysql_fetch_array($result1); $pro_id=$fetcharry1['pro_id']; $pro_number=$fetcharry1['pro_number']; echo mysql_error(); $pro_id= $_GET['pro_id']; $c_id=$_GET['c_id']; //$c_name=$fetcharry['c_name']; //c_id='".$GET["c_id"]."' //$num_rows = mysql_num_rows($Result); //$sql="select * from product inner join customer on product.c_id=customer.c_id WHERE product.c_id "; //$result = mysql_query( $sql ); //$num_rows = mysql_num_rows($query); /*$fetcharry = mysql_fetch_array($result); $pro_id=$fetcharry['pro_id']; $c_id=$fetcharry['c_id']; $c_name=$fetcharry['c_name']; $pro_type_id=$fetcharry['pro_type_id']; $pro_name=$fetcharry['pro_name']; $pro_bran=$fetcharry['pro_bran']; $pro_model=$fetcharry['pro_model']; $pro_scar=$fetcharry['pro_scar']; $pro_acc=$fetcharry['pro_acc']; $pro_price=$fetcharry['pro_price'];*/ ?> <!DOCTYPE html> <html lang="en"> <head> <!-- title and meta --> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <link rel="stylesheet" href="css/base.css" /> <link rel="stylesheet" href="css/style.css" /> <title>เพิ่มสินค้าไถ่ถอน</title> </head> <body> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0"> <tbody> <tr> <td align="center"><img src="img/banner.png" width="960" height="250"></td> </tr> <tr> <td><? include"menu_top.php";?></td> </tr> <tr> <td align="center" valign="top"><p class="text_blue"> <h3 align="center"><br></h3> <h2><strong><font color="#000066">> เพิ่มข้อมูลสินค้าไถ่ถอน <</font></strong></h2> <p> </p> <form action="save_redeem.php"method="post" enctype="multipart/form-data" > <input type="hidden" name="pro_id" value="<?=$pro_id;?>"> <table width="666" height="422" border="0"> <tr> <td width="247" height="42" align="right" bgcolor="#FFCC99"><div align="right"> <h3>รหัสการไถ่ถอน : </h3> </div></td> <td width="409" bgcolor="#FFFFCC"><h3><? $redeem_id=mysql_result(mysql_query("Select Max(redeem_id)+1 as MaxID from redeem"),0,"MaxID"); if($redeem_id==''){ $redeem_id="1"; }else{ $redeem_id=sprintf("%01d",$redeem_id); } echo "$redeem_id" ?> </h3></td> </tr> <tr> <td height="58" align="right" bgcolor="#FFCC99"><div align="right"> <h3>วันไถ่ถอนคืน : </h3> </div></td> <td bgcolor="#FFFFCC"><h3> <label for="date_redeem"></label> <input type="text" name="date_redeem" id="date_redeem"> </h3></td> </tr> <tr> <td height="60" align="right" bgcolor="#FFCC99"><h3>วันที่ตัดดอกเบี้ย : </h3></td> <td bgcolor="#FFFFCC"><h3> <label for="date_interest"></label> <input type="text" name="date_interest" id="date_interest"> </h3></td> </tr> <tr> <td height="56" align="right" bgcolor="#FFCC99"><h3>ดอกเบี้ย : </h3></td> <td bgcolor="#FFFFCC"> <label for="interest"></label> <input type="text" name="interest" id="interest"></td> </tr> <tr> <td height="56" align="right" bgcolor="#FFCC99"><div align="right"> <h3>รหัสลูกค้า : </h3> </div></td> <td bgcolor="#FFFFCC"><h3> <?php echo $fetcharr['c_id']; ?> </h3></td> </tr> <tr> <td height="67" align="right" bgcolor="#FFCC99"><h3>รหัสสินค้าจำนำ : </h3></td> <td bgcolor="#FFFFCC"><?php echo $fetcharr1['pro_id']; ?></td> <tr> <td height="67" align="right" bgcolor="#FFCC99"><h3>สถานะ : </h3></td> <td bgcolor="#FFFFCC"><h3> <select name="status_id" id="status_id" required> <? $strSQL = "SELECT * FROM status_pro"; $objQuery = mysql_query($strSQL); while($objResuut = mysql_fetch_array($objQuery)) { ?> <option value="<?=$objResuut["status_id"];?>"> <?=$objResuut["status_name"];?> </option> <? } ?> </select> </h3></td> </table> <p align="center"> <input type="submit" name="Add" id="Add" value="เพิ่มข้อมูล"> </p> <p align="center"> </p> </form> </form></tr> </td> </tr> </tbody> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง