<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> </body> </html> <? include "dbconnect.php"; include "menu.php"; echo $customer_no = $_REQUEST['customer_no']; ?> <br> <style> .verdana15 { font-family:verdana; font-size:15px; } </style> <? $nameSQL = "SELECT * FROM nc_customers WHERE Customer_NO = '$customer_no'"; $namequery = mysql_query($nameSQL); if (mysql_num_rows($namequery) == 1) { $FetchArray = mysql_fetch_array($namequery); mysql_fetch_array ($namequery); mysql_close(); $DBName_Thai = $FetchArray['2']; $DBName_Eng = $FetchArray['3']; } else { echo "No Data"; } ?> <form action=""> <table width="75%" border="1" align="center" class="verdana15"> <tr><td align="center" colspan="2">Customer Information</td></tr> <tr > <td>Customer NO. : </td> <td><?php echo $customer_no?></td> </tr> <tr> <td>Company name (ENG) : </td> <td><?php echo $DBName_Eng?></td> </tr> <tr> <td width="25%">Company name (THAI) : </td> <td><?php echo $DBName_Thai?></td> </tr> <tr> <td>Customer Type : </td> <td>1</td> </tr> <tr> <td>Sales Person : </td> <td>1</td> </tr> <tr> <td>Contact Point : <br> Contact Point Report:</td> <td>1</td> </tr> </table> </form> <form name=form1 method=POST> <center> <table width="80%" border="1"> <tr class="textGrayB"> <td width="10%" bgcolor="#CCCCCC"><center>NO. <center/></td> <td width="15%" bgcolor="#CCCCCC"><center>Order Number<center/></td> <td width="20%" bgcolor="#CCCCCC"><center>Item Number<center/></td> <td width="10%" bgcolor="#CCCCCC"><center>Circuit ID<center/></td> <td width="15%" bgcolor="#CCCCCC"><center>Service Type<center/></td> <td width="15%" bgcolor="#CCCCCC"><center>Name<center/></td> <td width="20%" bgcolor="#CCCCCC"><center>Service Name<center/></td> </tr> <?php if($search1 != '') { if($customer_no != '') { //echo $customer_no; //$nameSQL = "SELECT * FROM nc_workinglist WHERE Customer_NO = '$customer_no'"; } } $nameSQL = "SELECT * FROM nc_workinglist WHERE Customer_NO = '$customer_no'"; $query = mysql_query($nameSQL); while($rs = mysql_fetch_array($query)) { $DBOrder_ID = $rs[0]; $DBCustomer_ID = $rs[1]; $DBCustomer_NO = $rs[2]; $DBOrder_Number = $rs[3]; $DBItem_Number = $rs[4]; $DBService_Type = $rs[5]; ?> <tr class="textP"> <td><center><?php echo $DBOrder_ID?></center></td> <td><center><?php echo $DBOrder_Number; ?></center></td> <td><center><?php echo $DBItem_Number; ?></center></td> <td><center><?php //echo $DBItem_Number; ?></center></td></td> <td><center><?php echo $DBService_Type; ?></center></td></td> <td><center><?php //echo $DBItem_Number; ?></center></td></td> <td><center><?php //echo $DBItem_Number; ?></center></td></td> </tr> <?php } ?> </table> <?
<? $nameSQL = "SELECT * FROM nc_customers WHERE Customer_NO = '$customer_no'"; $namequery = mysql_query($nameSQL); if (mysql_num_rows($namequery) == 1) { $FetchArray = mysql_fetch_array($namequery); mysql_fetch_array ($namequery); mysql_close(); $DBName_Thai = $FetchArray['2']; $DBName_Eng = $FetchArray['3']; } else { echo "No Data"; } ?>
$query = mysql_query($nameSQL);
$query = mysql_query($nameSQL) or die (mysql_error());
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง