This is not a forum to help you with your code, but you're getting the error because in your sql query here
$query="select email,fname from members where (password=password($pword) && email='$email')";
You're only grabbing the email, and fname columns from your members table.
However on this line
if($row['admin']==1){
You're using the column named admin, which you're not se
Forum:
WampServer English