ok i got this little script and i want to make the array $configVars[] global how:S
<?
$conn = mysql_connect("localhost", "root", "mywonderfulpassword");
mysql_select_db("faction");
getConfigVars();
echo $configVars['nav']."<br>";
function getConfigVars(){
global $configVars;
$query = "select * from config";
$result = mysql_query($query);
while($row = mysql_fetch_object($result)){
$configVars['$row->name'] = $row->value;
}
}
?>
this doesnt work 🙁 can someone tell me why thanks