PHP 8.5.0 Beta 1 available for testing

Voting

: two minus one?
(Example: nine)

The Note You're Voting On

Ejaz Ansari
9 years ago
For those who are confused on insert query using PDO-bindparam:

$sql = $db->prepare("INSERT INTO db_fruit (id, type, colour) VALUES (? ,? ,?)");

$sql->bindParam(1, $newId);
$sql->bindParam(2, $name);
$sql->bindParam(3, $colour);
$sql->execute();

<< Back to user notes page

To Top