note 44531 added to security.database
| From: | DwayneLitzenberger at osu1 dot php dot net | Date: | Mon, 09 Aug 2004 07:22:40 +0000 |
| Subject: | note 44531 added to security.database | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74302@lists.php.net to get a copy of this message | ||
Another thing you can do (if you're using the dbx_* functions), is download the dbxext module
(http://www.dlitz.net/go/php-dbx-ext/ ), and let it handle proper quoting for you (like most other
scripting languages do it):
$link = dbx_connect(...);
$results = dbx_execute($link,
"DELETE FROM foo WHERE a = ? AND b = ? AND c = ? AND d = ?",
array("foo", $b, 5, '5'));
----
Manual Page -- http://www.php.net/manual/en/security.database.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44531
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44531&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44531&report=yes
Search -- http://master.php.net/manage/user-notes.php