Page 1 of 1

error i can't fix

Posted: Sun Jul 11, 2004 9:35 pm
by FCB
i'm pullin my hair out on this one, i've tried everything...

Parse error: parse error, expecting `T_VARIABLE' or `'$'' in ../global_fns.php on line 159

159 is this:

$1 = mysql_query("select * from '$table' where 'type' = 1");

table is defined a few lines before:

$table = 'mem_'.$user;

any ideas?
~FCB

Posted: Sun Jul 11, 2004 9:38 pm
by redmonkey
Variable names cannot start with a digit.

Posted: Sun Jul 11, 2004 9:41 pm
by FCB
ah, that would do it... thanks!