PHP 8.5.0 Alpha 4 available for testing

Voting

: max(four, three)?
(Example: nine)

The Note You're Voting On

gilhildebrand at gmail dot com
10 years ago
MySQL will return an error if a named placeholder has a hyphen in it:
UPDATE wardrobe SET `T-Shirt`=:T-SHIRT WHERE id=:id

Will return the following error: PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined'

To resolve, just remove hyphens from named placeholders:
UPDATE wardrobe SET `T-Shirt`=:TSHIRT WHERE id=:id

<< Back to user notes page

To Top