AbstractFire Posted November 13, 2007 Share Posted November 13, 2007 I recently rewrote my a login script so that the possibility of an SQL injection is diminished. However, I now have a new issue that I have come across. Since I now compare the username in php rather than in a query, how can I make it so that it compares 2 strings regardless of case and returns true if they match? Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 13, 2007 Share Posted November 13, 2007 you could do it using the following function http://php.net/manual/en/function.strcasecmp.php Quote Link to comment Share on other sites More sharing options...
AbstractFire Posted November 14, 2007 Author Share Posted November 14, 2007 Perfect! That what I needed. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.