SDP2006
06-28-2004, 10:00 PM
How can I achieve this? My configuration file looks something like this<?php
define('DB','test');
define('DB_USER','root');
define('DB_PASS','rootpass');
define('DB_TABLE','announcements');
define('USERNAME','Admin');
define('PASSWORD','1234');
define('SITE_NAME','Cannon');
$link = mysql_connect("localhost",DB_USER,DB_PASS) or die(mysql_error());
mysql_select_db(DB,$link) or die(mysql_error());
?> I want the user to see a form, and these 'definitions' will be updated according the the form. I'm doing this so it will be easier for users to install.
When the install is run, it sets the definitions of them according to the form at installation.
All help is welcome.
Thanks.
Stevie
define('DB','test');
define('DB_USER','root');
define('DB_PASS','rootpass');
define('DB_TABLE','announcements');
define('USERNAME','Admin');
define('PASSWORD','1234');
define('SITE_NAME','Cannon');
$link = mysql_connect("localhost",DB_USER,DB_PASS) or die(mysql_error());
mysql_select_db(DB,$link) or die(mysql_error());
?> I want the user to see a form, and these 'definitions' will be updated according the the form. I'm doing this so it will be easier for users to install.
When the install is run, it sets the definitions of them according to the form at installation.
All help is welcome.
Thanks.
Stevie