ConFoo Montreal 2026: Call for Papers

Voting

: min(eight, one)?
(Example: nine)

The Note You're Voting On

pbakhuis
11 years ago
Noteworthy in my opinion is that if you prepare a statement but do not bind a value to the markers it will insert null by default. e.g.
<?php
/** @var PDO $db */
$prep = $db->prepare('INSERT INTO item(title, link) VALUES(:title, :link)');
$prep->execute();
?>
Will attempt to insert null, null into the item table.

<< Back to user notes page

To Top