Hi tstory28,
After a quick look through your code, I would like to suggest a few things:
- Put a new if statement around line 6 to 61, in which you check whether the email and password form variable are set (if (isset($_POST['email) && .....) and delete the if statement in line 10
- Line 7, 8 - Clean the form value first: $variable = htmlentities(addslashes($_POST['form_variable']));
- Line 26 - Add an echo in which you show all the variables from the database:
echo "dbemail=".$dbemail.", dbpassword=".$dbpassword.", dbname=".$dbname.", dblevel=".$dblevel;
If you did all those steps (especially the last one), you will find out why your code is not working (probably because dblevel is empty, but you'll see)
~G