I know of one -
SELECT * FROM log_records WHERE 'username'=uname AND 'password'=pass;
if(row_count==1)
return true;
return false;
The questions are:
- Is the above algorithm a 'best practice'?
- Are there any alternatives to the above algorithm?
Thanks!