Hi,
i've read in the PHP manual that extract(); puts each item in an array into a varaible of its own which is named after the KEY...i got a lil prob...i dont think its doing this.
//////////////// REALLY BAD CODE \\\\\\\\
function get_config()
{
// script_config is set up like: id,c_variable,c_value,type
$configQ = "SELECT c_variable, c_value FROM script_config WHERE type='config'";
$configR=mysql_query($configQ) or die ("Couldn't Get Configuration Information From MySQL.<br>MySQL Says:" . mysql_error());
$configurationV = array();
while($configR0 = mysql_fetch_row($configR))
{
$configurationV["$configRO[0]"] = $configRO[1];
}
extract($configurationV, EXTR_PREFIX_SAME, "wddx"); mysql_free_result($configR);
}
///////////////////////////////////////////////////////////
ok can someone please tell me why i dont get a varaible like $sitename?
lol its probably just one of my stupid mistakes.
Thanks
Vince