|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-18 18:20 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Description: ------------ PDO Found some parameter / value. Reproduce code: --------------- $pdo = new PDO('mysql:host=192.168.69.20;dbname=Released', 'Web', 'Master99'); $query = "update Test set value='"; $var = "enabled=boolean:true description=string:\"Test\" type=integer? "; $query .= mysql_escape_string($var); $query .= "', where id='2'"; $statement = $pdo->prepare($query); $statement->execute(); Expected result: ---------------- No warning / error and the update of the database with the real content of $var. Actual result: -------------- Actually no update if $var is = "enabled=boolean:true description=string:\"Test\" type=integer? "; but if $var is = "enabled=boolean:true description=string:\"Test\" type=integer?"; in the database we found : enabled=boolean? description=string:"Test" type=integer?