@ 2016-01-17T11:07:51Z <?php
$con=mysqli_connect("db4free.net","thesis","tribiana7584913","library");
$password = $_POST["password"];
$username = $_POST["username"];
$statement = mysqli_prepare($con, "SELECT * FROM user_tbl where user_name = ? AND password = ? AND account_ID in (1,2) and status = 'Active'");
mysqli_stmt_bind_param($statement, "ss", $username,$password);
mysqli_stmt_execute($statement);
mysqli_stmt_store_result($statement);
mysqli_stmt_bind_result($statement,$userID,$username,$password,$emailadd,$accountID,$status);
$user = array();
while(mysqli_stmt_fetch($statement)){
$user[userID] = $userID;
$user[username] = $username;
$user[password] = $password;
$user[emailadd] = $emailadd;
$user[accountID] = $accountID;
}
echo json_encode($user);
mysqli_stmt_close($statement);
mysqli_close($con);
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /in/aN1IE:2
Stack trace:
#0 {main}
thrown in /in/aN1IE on line 2
Process exited with code 255 . Output for 5.5.0 - 5.5.38 , 5.6.0 - 5.6.28 Fatal error: Call to undefined function mysqli_connect() in /in/aN1IE on line 2
Process exited with code 255 . preferences:dark mode live preview
181.92 ms | 402 KiB | 238 Q