|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-02-08 21:59 UTC] phpmpan at mpan dot pl
[2012-02-09 00:29 UTC] aharvey@php.net
-Status: Open
+Status: Wont fix
[2012-02-09 00:29 UTC] aharvey@php.net
[2012-02-10 08:42 UTC] pazzo at bahnhof dot se
[2012-02-10 16:58 UTC] rasmus@php.net
[2012-02-10 16:59 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
Description: ------------ Since people are bad at securing their code, even when they know how, this function may give securer and more readable code: mysql_safe_query('UPDATE people SET (name, number) VALUES ? WHERE name = ? or ?` = ?', array('new name', 5553475), 'old name', 'custom field', 5); I've provided an example of how to solve this using php code. Test script: --------------- http://pastebin.com/8EcS9y1B