Hi there,
hope someone can help me,
Basically i have written a Feedback application, for use at my company.. this enables our clients to add feeback on our work..
Each client uses their own table in a database called 'Feedback'
Within the app i have a section to add a new client, which creates the new table, copys a template PHP directory to the new client added.
but, what i need to do, is find a way for php to edit the header.php file, to point to the new table created.. at the moment i have to go into every client added and change the header.php to point to the newly created table.
this is my header.
<?php
$backupnow = date("YmdHis");
$now = date("Y-m-d");
$nowf = date("y-m-d h:i:s");
$sqlhost = "localhost";
$sqlpass = "*******";
$sqlname = "*******";
$sqldb = "feedback";
$sqltable = "ChangeMe";
$sqlselect = "*";
?>
as you can see, the $sqltable needs to be changed for each new client, before its copyed to the new directory.
hope i have explained this enough.
Thanks.
Will Moverley