Hi all,
$Row = mysql_fetch_assoc($Result);
foreach($Row as $key => $val)
{
$$key = $val;
}
Thats my current code for takeing a whole row out of mysql and putting each key in to a variable named by the key with its corosponding value.
ie. the row called UserName in MySQL would become $UserName.
Trouble is I do the same for a session which has the same variable names.
I need to make $$key have a something before or after it.
ie $UserName_current
Does anyone know how to concatenate a variable variable?