RE: [PHP-DB] SQL query problem
| From: | Ashley Whitney | Date: | Mon, 05 Jun 2000 21:59:02 +0000 |
| Subject: | RE: [PHP-DB] SQL query problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-217@lists.php.net to get a copy of this message | ||
A good way I've found to do this is:
while (list($k,$v)=each($HTTP_POST_VARS)) {
$$k = addslashes($v);
}
Beats reassigning each value explicitly, especially if you have something
like twenty text fields.
> $engmods = addslashes($engmods);
> $suspmods = addslashes($suspmods);
> $intmods = addslashes($intmods);
> $extmods = addslashes($extmods);
> $audiomods = addslashes($audiomods);
> $miscmods = addslashes($miscmods);
> $futuremods = addslashes($futuremods);