<body class="hold-transition login-page"> <?php require('db.php'); session_start(); if (isset($_POST['username'])) { $username = $_POST['username']; $password = $_POST['password']; $username = stripslashes($username); $username = $mysqli->real_escape_string($username); $password = stripslashes($password); $password = $mysqli->real_escape_string($password); $query = "SELECT * FROM `user` WHERE username='$username' and password='$password'"; $result = $mysqli->query($query) or die($mysqli->error); $rows = $result->num_rows;
$mysqli
mysqli
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)