I have to compare the user's passwd to the one in my db. The passwd was inserted in db with
INSERT INTO table (fileds ... passwd) VALUES (values ... PASSWORD('typed_password')).
I already tried to compare in two ways:
SELECT * FROM table WHERE passwd = PASSWORD('typed_passwd')
and
SELECT * FROM table WHERE passwd LIKE PASSWORD('typed_passwd').
Please, answer asap.
Thanks a lot, rbauerle.
INSERT INTO table (fileds ... passwd) VALUES (values ... PASSWORD('typed_password')).
I already tried to compare in two ways:
SELECT * FROM table WHERE passwd = PASSWORD('typed_passwd')
and
SELECT * FROM table WHERE passwd LIKE PASSWORD('typed_passwd').
Please, answer asap.
Thanks a lot, rbauerle.