[MSQL] Need help checking if password is right.
#7

Quote:
Originally Posted by Mean
Посмотреть сообщение
...No... As far as I know, mysql_num_rows is used when the thing you put in query is found or not.
Use strcmp to compare passwords.
There is no need for strcmp, that mysql_num_rows is just the right one.
You run your query like SELECT NULL FROM `table` WHERE `username` LIKE 'name' AND `password` = 'pass', which returns something only if there is row with same username and password.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)