Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($stmt->rowCount() > 0){
- // get retrieved row
- $row = $stmt->fetch(PDO::FETCH_ASSOC);
- // create array
- $user_arr=array(
- "status" => true,
- "message" => "Successfully Login!",
- header( 'Location: ./index.html' ),
- "id" => $row['id'],
- "username" => $row['username']
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement