hi
Your query will come like
"$sql="SELECT * FROM users WHERE username='".$username."' AND password='".$password."'";
Please try with this one and let me know if still any problem comes
phpuser
Junior Poster in Training
55 posts since May 2008
Reputation Points: 11
Solved Threads: 7
Do one thing ,
echo you $sql variable in your script then write die(); so when you run code you will see that query only.
Now take that query and run it in PHPMYADMIN and check is it right or your get result from same ??
may be you can get some idea wheres the problem is ?
Best luck..
phpuser
Junior Poster in Training
55 posts since May 2008
Reputation Points: 11
Solved Threads: 7