Linked question is here. I have upgraded the code in the linked question to use a prepared statement. I now have: $stmt = $conn->prepare(“INSERT INTO `workbook-data` (`workbook-language`, `gui-…
Tag: bindparam
how do I correctly use mysqli_stmt::bindParam()
I am having difficulty understanding how to properly use bindParam(); I have been following the details at the following URL: http://php.net/manual/en/pdo.prepared-statements.php which show the following as one of their examples: This example is obviously incomplete, however, it shows enough of the details that I should be able reproduce the same results. I have lifted the code below out of my
Custom mysqli prepare function
I’m doing my first own database class at the moment and currently I’m doing the prepare function. What this function does is to take in an SQL-query and then an array containing the variables for the …