|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-03-02 08:35 UTC] jellofishi at gmail dot com
[2013-03-02 17:00 UTC] shri dot amin at gmail dot com
-Status: Open
+Status: Closed
[2013-03-02 17:00 UTC] shri dot amin at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 02:00:02 2025 UTC |
Description: ------------ the bindParam($param, $var) PDO function does not require the colon(:) for the param. Test script: --------------- $stmt = $dbh->prepare("INSERT INTO foo VALUES (:email, :password)"); $stmt->bindParam('email', $_POST['email']); //this works, but shouldn't $stmt->bindParam('password', $_POST['password']); //this works, but shouldn't Expected result: ---------------- obviously the first param of bindParam() should require the colon(:) Actual result: -------------- the first param of bindParam() does not require the colon(:)