PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello,
I'm running a query for user name and password. But, it works for both the CASES{ Lower case & Upper Case}. How do i check for CASE too.
Any help is really appreciated.
Here is the query.
$username = $_POST["name"];
$password = $_POST["pass"];
$result = MYSQL_QUERY("SELECT * from data WHERE UserName='$username' and PassWord='$password' ")
or die ("Name and password not found or not matched");
Last edited by Kingo on Wed Sep 15, 2004 1:53 pm, edited 1 time in total.
By the way, never thrust users' inputs.
It is good to not pass datas to db directly. I prefer to do some chekings on them.
Remember, there is something like SQL-injection