Hi, here is how we do it.
First of all you need to define your variables in a separate file. Just make an array with of them like this
$Options = Array(
user => value,
admin => value,
database => value ...
)
Then define your tables:
$Table['myTable1'] = 'myTavle1'; ....
Then you include your options file in the admin file. This way you have fully customizable system.
All you have to do now is to make PHP installation script for the tables. It is done just the same way that you do with "select" statements. You will have something like this
$sql = 'CREATE TABLE' . $Table['myTable']. '
Id int(8) autoincrement not null,
colName1 varchar(50), ....
Then with one insert statement you can insert admin account.