need some php magic
Posted 30 August 2006 - 12:20 AM
Well I need to be able to write to this via a form... The only thing thats ever going to change is config_value -- so how do I take the contents of the form and put it into the database?
Only way i could think of would be to do every query individually.. which would suck... then i thought someone here might now a bit about doing something like this.. so let me know.. and thanks in advance...
Posted 30 August 2006 - 02:55 AM
site_name My Web Site
site_descrip the elitest of the elite
It is in that type of setup... goes on an on holds all the important configuration of my site in this table....
Posted 30 August 2006 - 06:53 AM
domainname=www.mysiste.com site_name=My Web Site site_descrip=the elitest of the elite site_enable=1 req_act=0 req_vis_act=1
To read it
$config = parse_ini_file('config.php', false);
$config now is an array
Array ( [domainname] => www.mysiste.com [site_name] => My Web Site [site_descrip] => the elitest of the elite [site_enable] => 1 [req_act] => 0 [req_vis_act] => 1 )
echo $config['site_name'] --> 'My Web Site' ;
Donations gratefully received
|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users