Originally Posted by Redcoder
I hope that you understand that $row['usergroup'] has the contents of the field that shows whether the user is an admin or not. If the content is 1, in the above code, it means that the user is not an admin i.e a normal user so is redirected to the relevant page.
To make it more specific to your case:
if($row['usergroup']==1) //normal user
else //If the username/password combination has not been found in the dbase
Thanks above and Redcoder,
As per your suggestion I will get this altered and post the update.....