updated post.php to mysqli