PDOStatement::bindParam
-
快看!这里有一个PDOStatement::bindParam的陷阱!
废话不多说, 直接看代码:<?php $dbh = new PDO('mysql:host=localhost;dbname=test', "test"); $query = <<<query INSERT INTO `user` (`username`, `password`) VALUES (:usernam…
废话不多说, 直接看代码:<?php $dbh = new PDO('mysql:host=localhost;dbname=test', "test"); $query = <<<query INSERT INTO `user` (`username`, `password`) VALUES (:usernam…