Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($connection){
- $username = "admin";
- $password = "admin";
- $statement = mysqli_prepare($connection,"SELECT * FROM `admin` WHERE username = ? AND password = ?");
- mysqli_stmt_bind_param($statement,"ss",$username,$password);
- mysqli_stmt_execute($statement);
- if(mysqli_affected_rows($connection) == 1){
- $response = array('response'=>true);
- }else{
- $response = array('response'=>false);
- }
- echo json_encode($response);
- mysqli_stmt_close($statement);
- mysqli_close($connection); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement