#check if the value id in the database is greater than 1 if row['id'] > 1: print "error your id is greater than 1" elif #check if username and password is correct to log user in if username == row['username'] and password == row['password']: print "user successfully loged in" else: print "wrong username and password"
1 reply to this topic
#1
Posted 28 November 2011 - 02:13 PM
I need to check users id and to log users in if the account is right but it returns an error page any help
|
|
|
#2
Posted 28 November 2011 - 02:38 PM
Without knowing what error it's really difficult to say, more of a guess. Also, if you can, please provide full code.
A conclusion is where you got tired of thinking.
#define class struct // All is public.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









