Jump to content

database statement problem

- - - - -

  • Please log in to reply
1 reply to this topic

#1
mutago

mutago

    Programmer

  • Members
  • PipPipPipPip
  • 102 posts
I need to check users id and to log users in if the account is right but it returns an error page any help

#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"




#2
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 890 posts
  • Location:::1
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