Sorry , allow me to clear up what i meant by wont work ...
i Should of stated that , but failed to , kinda busy right now.
When im submitting the form , it's fowarding me to the /login.php?login=invalid , location. which tells me validation of the information from the database has failed.
Ive checked the code i wrote , and i dont see any problems with the syntax
all information in mysql is correct , and verified.
Im just stuck on possible reasons why this wont work....... and i dont wanna do somthing like
" Select * from shocc_users where username = and pass = "
if(mysql_num_rows) ... blah blah .. you get the point
I want to validate that the password submitted is truley the password in the DB , not just if it returns rows ..