Advertisement
Sparkster

Untitled

Jul 29th, 2013
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.41 KB | None | 0 0
  1. if(isset($_POST['status_update'])) {
  2.     $profile_stauts = $_POST['stauts'];
  3.  
  4. $query = $pdo->prepare("UPDATE users SET status = :status WHERE id = :id LIMIT 1");
  5. $query->bindValue(":status", $profile_status, PDO::PARAM_STR);
  6. $query->bindValue(":id", $_GET['id'], PDO::PARAM_INT);
  7. $query->execute();
  8. $status_input = $query->fetch();
  9.  
  10. }
  11.  
  12. <input type='text' name='status' placeholder='update your fucking status'>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement