Forum Moderators: coopster

Message Too Old, No Replies

New to PHP

Error Message

         

dwighty

8:36 pm on Sep 6, 2005 (gmt 0)

10+ Year Member



Hi Guys,

I am quite new to php coding and am currently setting up a login area for a CMS.
The problem i get the following area and i can't see the problem, can anyone help?

Error Message: Parse error: parse error, unexpected T_VARIABLE in /homepages/29/d88864903/htdocs/predicto/newsite/admin/_includes/Sentry.php on line 53

The line it refers to is:
$getUser = $loginConnector->query("SELECT * FROM pfl_admin_users WHERE user = '".$_SESSION['user']."' AND pass = '"$_SESSION['pass']."' AND thegroup <= ".$group.' AND enabled = 1');

Any help would be appreciated.

Thanks

sned

8:50 pm on Sep 6, 2005 (gmt 0)

10+ Year Member



It looks like your missing a . here:

AND pass = '"$_SESSION['pass']."'

->

AND pass = '".$_SESSION['pass']."'

-sned

dwighty

8:59 pm on Sep 6, 2005 (gmt 0)

10+ Year Member



Hi sned,

Thanks a lot for pointing that out, worked a treat!

dwighty