Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_POST['status_update'])) {
- $profile_stauts = $_POST['stauts'];
- $query = $pdo->prepare("UPDATE users SET status = :status WHERE id = :id LIMIT 1");
- $query->bindValue(":status", $profile_status, PDO::PARAM_STR);
- $query->bindValue(":id", $_GET['id'], PDO::PARAM_INT);
- $query->execute();
- $status_input = $query->fetch();
- }
- <input type='text' name='status' placeholder='update your fucking status'>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement