if user is not the registered user first he has to register and then login, my login page is working but i want to validate whether he is an registered user or not. i had written some code but its giving some problem , can any one help me plz...this is actually not a full code what i have given below.
$username = $_POST;
$password = $_POST ;
$q = "SELECT * FROM `userdetail` WHERE username='".$username."' AND password='".$password."'";
$result = mysql_query($q);