Contact: aviboots(AT)netvision.net.il
39,851 questions
51,772 answers
573 users
try { $update = $con->prepare("UPDATE posts SET active = 1 WHERE post_id = :postid"); $update->bindParam(':postid', $_POST['post-id'], PDO::PARAM_INT); $update->execute(); } catch (PDOException $e) { die($e->getMessage()); }