Can anyone please lend me a hand,
I'm trying to design a cookie based password system.
I have managed to do everything bar one thing that is driving me
crazy.
I have a MYSQL database called "PassworDB" which has a table in it
called "auth",
this table has the columns "user_id" (this is an auto incrementing
number) "user" (meant for the users name) and "password".
All I'm trying to do is search through the results of a MYSQL query
"Select * from pages where user = '$form_user'" ($form_user being
generated from a html form), and compare it to $form_pass (again
generated by the html form) for verification that the user exists in
my database and has supplied the correct password.
I have tried loop's foreach's while statements and all sorts but don't
seem to be able to crack it.
I am quite new to the language so I'm sure it's just the way I'm
trying to do it. If anyone can give me an example or even just tell
me the best way to do it would be really appreciative....
CHEERS......