<select name="data[profile][address_contact]" id="address_contact" > <option value="1" <?php echo ($profile['address_contact']==1 ? "selected" : "");?>>ที่อยู่ที่ทำงาน</option> <option value="2" <?php echo ($profile['address_contact']==2 ? "selected" : "");?>>ที่อยู่ปัจจุบัน</option> <option value="3" <?php echo ($profile['address_contact']==3 ? "selected" : "");?>>ที่อยู่ตามบัตรประชาชน</option> </select>
<tr> <td><span class="style18"><?php echo "ชื่อบริษัท";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][nm_work]" id="nm_work" size="30" value="<?php echo $profile['nm_work'];?>"> </td> </tr> <tr> <td><span class="style18"><?php echo "ตำแหน่ง";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][position]" id="position" size="30" value="<?php echo $profile['position'];?>"> </td> </tr> <tr> <td><span class="style18"><?php echo "เลขที่";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][no_work]" id="no_work" size="30" value="<?php echo $profile['no_work'];?>"> </td> </tr> <tr> <td><span class="style18"><?php echo "หมู่";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][moo_work]" id="moo_work" size="30" value="<?php echo $profile['moo_work'];?>" > </td> </tr> <tr> <td><span class="style18"><?php echo "หมู่บ้าน";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][village_work]" id="village_work" size="30" value="<?php echo $profile['village_work'];?>"> </td> </tr> <tr> <td><span class="style18"><?php echo "อาคาร";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][village_work]" id="village_work" size="30" value="<?php echo $profile['building_work'];?>"> </td> </tr> <tr> <td><span class="style18"><?php echo "ซอย";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][soi_work]" id="soi_work" size="30" value="<?php echo $profile['soi_work'];?>"> </td> </tr> <tr> <td><span class="style18"><?php echo "ถนน";?> <font color="red">*</font></span></td> <td colspan="2"><input name="data[profile][road_work]" id="road_work" size="30" value="<?php echo $profile['road_work'];?>"> </td> </tr>
<html> <head> <title>ThaiCreate.Com PHP & MySQL Tutorial</title> </head> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } //--> </script> <body> <form name="frmSearch" method="post" action="<?=$_SERVER['SCRIPT_NAME'];?>"> <table width="599" border="1"> <tr> <th>Country Code <select name="ddlCountryCode" id="ddlCountryCode" onChange="MM_jumpMenu('parent',this,0)"> <option>- Select Country Code -</option> <option value="<?=$_SERVER["PHP_SELF"];?>?Counter=TH">TH</option> <option value="<?=$_SERVER["PHP_SELF"];?>?Counter=EN">EN</option> <option value="<?=$_SERVER["PHP_SELF"];?>?Counter=US">US</option> </select> </th> </tr> </table> </form> <? $objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database"); $objDB = mysql_select_db("mydatabase"); // Search By Name or Email $strSQL = "SELECT * FROM customer WHERE 1 "; if($_GET["Counter"] != "") { $strSQL .= " AND (CountryCode = '".$_GET["Counter"]."') "; } $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); ?> <table width="600" border="1"> <tr> <th width="91"> <div align="center">CustomerID </div></th> <th width="98"> <div align="center">Name </div></th> <th width="198"> <div align="center">Email </div></th> <th width="97"> <div align="center">CountryCode </div></th> <th width="59"> <div align="center">Budget </div></th> <th width="71"> <div align="center">Used </div></th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td><div align="center"><?=$objResult["CustomerID"];?></div></td> <td><?=$objResult["Name"];?></td> <td><?=$objResult["Email"];?></td> <td><div align="center"><?=$objResult["CountryCode"];?></div></td> <td align="right"><?=$objResult["Budget"];?></td> <td align="right"><?=$objResult["Used"];?></td> </tr> <? } ?> </table> <? mysql_close($objConnect); ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง