I just started working with mysqli prepared statements. I am still trying to master it when I ran into an issue with a prepared UPDATE
statement.
After searching SO, I found this question.
But it was unanswered; the question closely resembles my issue:
<?php
$pin = '12345' // spaceballs reference
$email = 'somebody@email.com';
$update = "UPDATE users SET sec_pin = ? WHERE email = ?;";
$stmt = $dbc->prepare($update);
$stmt->bing_param("is", $rand, $dbuseremail);
$stmt->execute();
?>
I am returning a 500 Internal Error. How can I fix this?