<?php require_once('Connections/connection.php'); ?> <html> <head> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { global $connection; if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysqli_real_escape_string") ? mysqli_real_escape_string($connection, $theValue) : mysqli_escape_string($connection, $theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "password": $theValue = ($theValue != "") ? "'" . md5($theValue) . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $colname_Recordset1 = ""; if (isset($_POST['key_card'])) { $colname_Recordset1 = $_POST['key_card']; } //42320819($database_connection, $connection); $query_Recordset1 = sprintf("SELECT * FROM tb_member WHERE key_card = %s", GetSQLValueString($colname_Recordset1, "text")); $Recordset1 = mysqli_query($connection, $query_Recordset1) or die(mysqli_error($connection)); $row_Recordset1 = mysqli_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysqli_num_rows($Recordset1); ?> </head> <body> <form name="frmSearch" method="get" action="<?php echo $_SERVER['SCRIPT_key_card'];?>"> <table width="599" border="1"> <tr> <th>Keyword <input name="key_card" type="text" id="key_card" value="<?php echo $colname_Recordset1;?>"> <input type="submit" value="Search"></th> </tr> </table> </form> <table width="600" border="1"> <tr> <th width="91"> <div align="center">username </div></th> <th width="98"> <div align="center">password </div></th> </tr> <?php while ($row_Recordset1 = mysqli_fetch_assoc($Recordset1)); { ?> <tr> <td><?php echo $row_Recordset1['username']; ?></td> <td><?php echo $row_Recordset1['password']; ?></td> </tr> <?php } ?> </table> <?php mysqli_free_result($Recordset1); ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง