briintex1
08-04-2007, 05:20 PM
Hello I was wondering if you might be able to help. I was wondering how I would make a table name equal a variable.
I have this
if ($display == "Premiums")
{
$premiums2='Premiums2'
$query2 "Select * from $premiums2";
}
but it does not seem to work, and I get the following error
Parse error: parse error, unexpected T_VARIABLE
I have this
if ($display == "Premiums")
{
$premiums2='Premiums2'
$query2 "Select * from $premiums2";
}
but it does not seem to work, and I get the following error
Parse error: parse error, unexpected T_VARIABLE