Needing help with making SQL code w/variables in PHP
Posted: Tue Apr 22, 2003 11:18 am
Here is a summary
I built an app that is "customizable" to the user. The user can select their database (enter database, username, password), table prefix desired, and many other features that are stored as variables in PHP.
The app is complete and I am now working on a universal installer. The SQL code is for MySQL server (future versions will support many different alternatives) and is about 300 lines so I'm trying to find a simple find/replace strategy for the code.
Does anyone have any suggestions on how to accomplish this?
Thanks ahead of time!
Rob
I built an app that is "customizable" to the user. The user can select their database (enter database, username, password), table prefix desired, and many other features that are stored as variables in PHP.
The app is complete and I am now working on a universal installer. The SQL code is for MySQL server (future versions will support many different alternatives) and is about 300 lines so I'm trying to find a simple find/replace strategy for the code.
Does anyone have any suggestions on how to accomplish this?
Thanks ahead of time!
Rob