Re: Retrieving array_keys from $_POST
| From: | Ernest E Vogelsinger | Date: | Fri, 23 May 2003 15:09:09 +0000 |
| Subject: | Re: Retrieving array_keys from $_POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148779@lists.php.net to get a copy of this message | ||
At 15:59 23.05.2003, Daniel J. Rychlik said:
--------------------[snip]--------------------
>Do you think its a good idea to use SQL statements in an array ? I was
>thinking of creating an array with all the SQL statements that I would need
>and just calling the elements. That way it makes the code more uniform and
>easy to update if needed. Rather than editing multiple lines of code, you
>basically edit one array...
--------------------[snip]--------------------
Yeah - sure, did this once, and kept on doing it since... I'm using this to
have possibly different SQL statements optimized for different database
brands, by "dynamically linking" the statement table to the application.
Works a bunch.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/