Hi,
This is a config file that I have for a script. I would appreciate your help in checking whether this correct. I have no experience in PHP whatsoever. Thank You Very Much
[php]<?php
// mySQL information
$server = ‘’; // MySql server
$username = ‘’; // MySql Username
$password = ‘’ ; // MySql Password
$database = ‘’; // MySql Database
//mySQL connect
$con = mysql_connect($server,$username,$password);
if(!$con) die('Could not connect: ’ . mysql_error());
if(!mysql_select_db($database, $con)) die('Could not select db: ’ . mysql_error());
$setting[‘site_path’] = dirname(FILE);
//Get settings
if (!isset($install)) {
$sql = mysql_query(“SELECT * FROM ws_settings”);
while ($get_setting = mysql_fetch_array($sql)) {
$setting[$get_setting[‘name’]] = $get_setting[‘value’];
}
}
?>[/php]