find($_POST['id']); $post->title = $_POST['upTitle']; $post->description = $_POST['upDescription']; if($post->update()){ return 1; } }