<?php include('config.php'); $Sticker = $_GET['term']; $strSQL = "SELECT NameEng FROM sticker WHERE NameEng LIKE '{$Sticker}%' "; $rs = mysql_query($strSQL); $json = array(); while($row = mysql_fetch_array($rs)) { $json[] = $row['NameEng']; } mysql_free_result($rs); mysql_close($objConnect); $json = json_encode($json); echo $json; ?>
<table width="700px" style="height: 240px;" align="center"> <tr align="center" > <td class="td">Design<input type="text" name="design[]" id="word" style="width: 180px;"></td> <td class="td1">Color<input type="text" name="color[]" style="width:60px;"></td> <td width="20px"></td> <td width="20px"></td> <td class="td">Design<input type="text" name="design[]" id="word1" style="width: 180px;" ></td> <td class="td1">Color<input type="text" name="color[]" style="width:60px;"></td> </tr> <tr align="center"> <td class="td">Design<input type="text" name="design[]" id="word2" style="width: 180px;"></td> <td class="td1">Color<input type="text" name="color[]" style="width:60px;"></td> <td width="20px"></td> <td width="20px"></td> <td class="td">Design<input type="text" name="design[]" id="word3" style="width: 180px;"></td> <td class="td1">Color<input type="text" name="color[]" style="width:60px;"></td> </tr> <tr align="center"> <td class="td">Design<input type="text" name="design[]" id="word4" style="width: 180px;"></td> <td bgcolor="#ea5910">Color<input type="text" name="color[]" style="width:60px;"></td> <td width="20px"></td> <td width="20px"></td> <td class="td">Design<input type="text" name="design[]" id="word5" style="width: 180px;"></td> <td class="td1">Color<input type="text" name="color[]" style="width:60px;"></td> </tr> <script type="text/javascript" src="jquery-ui/jquery.js"></script> <script type="text/javascript" src="jquery-ui/jquery-ui.min.js"></script> <script> $(function(){ $('#word').autocomplete({ source: "test.php", minLength: 2 }); }); </script>
<td class="td">Design<input type="text" name="design[]" id="word" style="width: 180px;"></td> <td class="td">Design<input type="text" name="design[]" id="word1" style="width: 180px;" ></td> <script> $(function(){ $('#word').autocomplete({ source: "test.php", minLength: 2 }); $('#word1').autocomplete({ source: "test.php", minLength: 2 }); }); </script>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง