<? include("condb.inc.php"); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body> <form name="frmSearch" method="get" action="<?=$_SERVER['SCRIPT_NAME'];?>"> <table width="78" border="0" align="center"> <tr> <td width="15"><a href="create.php" target="mainFrame"><img src="images/shopico.jpg" alt="" width="66" height="66" border="0"/></a></td> <td width="15"><a href="editc1.php"><img src="images/memico.jpg" width="66" height="66" border="0" /></a></td> <td width="15"><a href="editp1.php"><img src="images/typeico.jpg" alt="" width="66" height="66" border="0"/></a></td> <td width="15"><a href="searchlike.php"><img src="images/prdico.jpg" alt="" width="66" height="66" border="0" /></a></td> </tr> <tr> <center> <td colspan="4"><img src="images/12-2-2556.jpg" width="257" height="21" /></td> </center> </tr> </table> <center> <table width="599" border="1"> <tr> <th>Keyword <input name="txtKeyword1" type="text" id="txtKeyword1" value="<?=$_GET["txtKeyword1"];?>"> - <input name="txtKeyword2" type="text" id="txtKeyword2" value="<?=$_GET["txtKeyword2"];?>"> <input type="submit" value="Search"></th> </tr> </table></center> </form> <? if($_GET["txtKeyword1"] != "") { // Search By m_db $strSQL= "SELECT m_db FROM tb_member WHERE (date between ".$_GET["txtKeyword1"]." and ".$_GET["txtKeyword2"].")"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); //$strSQL = "SELECT * FROM tb_member WHERE (m_name LIKE '%".$_GET["txtKeyword1"]."%' )"; //$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); ?> <center><table width="600" border="1"> <tr> <th width="98"> <div align="center">ID</div></th> <th width="98"> <div align="center">Name</div></th> <th width="98"> <div align="center">Surname</div></th> <th width="97"> <div align="center">Email</div></th> <th width="59"> <div align="center">Pass</div></th> <th width="71"> <div align="center">Gender</div></th> <th width="71"> <div align="center">Birthday</div></th> <th width="71"> <div align="center">Mobile</div></th> <th width="71"> <div align="center">Address</div></th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td><div align="center"><?=$objResult["m_id"];?></div></td> <td><?=$objResult["m_name"];?></td> <td><?=$objResult["m_surname"];?></td> <td><div align="center"><?=$objResult["m_email"];?></div></td> <td align="center"><?=$objResult["m_pwd"];?></td> <td align="center"><?=$objResult["m_gender"];?></td> <td align="center"><?=$objResult["m_bd"];?></td> <td align="right"><?=$objResult["m_mobile"];?></td> <td align="justify"><?=$objResult["m_address"];?></td> </tr> <? } ?> </table></center> <p> <? } ?> </p> </body> </html>
$strSQL= "SELECT m_db FROM tb_member WHERE (date between ".$_GET["txtKeyword1"]." and ".$_GET["txtKeyword2"].")";
Error Query [SELECT m_db FROM tb_member WHERE (date between '1991-06-22' and '1991-07-19')]
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง