need fix error

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: need fix error

Post by seandisanti » Fri Mar 01, 2013 8:42 am

this line:

Code: Select all

$_SESSION['userid'] = $row[id];
should read

Code: Select all

$_SESSION['userid'] = $row['id'];
'UNEXPECTED CONSTANT' means "You've forgotten to quote something"

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: need fix error

Post by seandisanti » Mon Mar 04, 2013 10:03 am

No problem, I'm glad i could help.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests