[SOLVED] error i can't fix

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
FCB
Forum Newbie
Posts: 8
Joined: Mon Jun 21, 2004 6:12 pm

error i can't fix

Post 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
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Variable names cannot start with a digit.
FCB
Forum Newbie
Posts: 8
Joined: Mon Jun 21, 2004 6:12 pm

Post by FCB »

ah, that would do it... thanks!
Post Reply