MD5 and MySQL
#6

Quote:
Originally Posted by _rAped
Посмотреть сообщение
pawn Код:
if(mysql_num_rows() > 0)
{
    // Correct Pass
}
else
{
    // Wrong pass
}
Why so? If without conditions is faster, isn't that logical? Don't know why do oyu use mysql_num_rows here actually since you need mysql_retrieve_row or mysql_fetch_row anyway and they already return 1 if there's result.
Reply


Messages In This Thread
MD5 and MySQL - by [L3th4l] - 01.01.2011, 23:24
Re: MD5 and MySQL - by Vince - 01.01.2011, 23:27
Re: MD5 and MySQL - by _rAped - 01.01.2011, 23:29
Re: MD5 and MySQL - by FreshDoubleX - 01.01.2011, 23:31
Re: MD5 and MySQL - by _rAped - 01.01.2011, 23:33
Re: MD5 and MySQL - by Sergei - 01.01.2011, 23:53

Forum Jump:


Users browsing this thread: 1 Guest(s)