I'm a newbie and I can't figure out what this error means:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/easilyta/public_html/pub/user.php on line 190.
heres a snippet of the code:
if (!isset($_COOKI E['cookie'][id])) {
header("Locatio n:
http://error.easilytak en.com/usererror.php?e rror=login");
exit;
}
188 mysql_connect(" localhost", "username",
"password") ;
189 mysql_select_db ("database") ;
190 $cookie_idfind = mysql_query("SE LECT cookie_id
FROM master WHERE user='$_COOKIE['cookie'][id]'");
191 $cookie_id = mysql_fetch_arr ay($cookie_idfi nd);
192 if($cookie_id[0] == $_COOKIE['cookie'][auth]){
//
//
print 'hello, world';
basically what this does is takes the cookie[id] (which is the user field in
the db) and cookie[auth] (which is cookie_id in the db) using $_COOKIE and
checks to see if the user has the right authorization number stored in their
computer. any ideas as to why i get this error? the manuals are getting me
nowhere...
Thanks,
Matt
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/easilyta/public_html/pub/user.php on line 190.
heres a snippet of the code:
if (!isset($_COOKI E['cookie'][id])) {
header("Locatio n:
http://error.easilytak en.com/usererror.php?e rror=login");
exit;
}
188 mysql_connect(" localhost", "username",
"password") ;
189 mysql_select_db ("database") ;
190 $cookie_idfind = mysql_query("SE LECT cookie_id
FROM master WHERE user='$_COOKIE['cookie'][id]'");
191 $cookie_id = mysql_fetch_arr ay($cookie_idfi nd);
192 if($cookie_id[0] == $_COOKIE['cookie'][auth]){
//
//
print 'hello, world';
basically what this does is takes the cookie[id] (which is the user field in
the db) and cookie[auth] (which is cookie_id in the db) using $_COOKIE and
checks to see if the user has the right authorization number stored in their
computer. any ideas as to why i get this error? the manuals are getting me
nowhere...
Thanks,
Matt
Comment