I've got this code:
$conn = new mysqli($servername, $username, $password, $dbname);
$jsonvprencode = json_encode($jsonvpr);
$stmt = $conn->prepare("UPDATE `wp_posts` SET `post_content` = :val WHERE `ID` = $idvpr");
$stmt->bind_param(":val", $jsonvprencode);
$stmt->execute();
When trying to execute it it returns Fatal error: Call to a member function bind_param() on a non-object in /var/www/html/crawlnew.php on line 432
I can't understand what is going on here -_-
?as placeholder. If you want to use:valas a placeholder. It is pretty much like @niyou told you.