heyy,,,
im new to PHP, but I have experience in MySQL, Java and Perl.
I am trouble over this code of mine:
Assume the tables are correct.
Does anyone know where I am going wrong??
im new to PHP, but I have experience in MySQL, Java and Perl.
I am trouble over this code of mine:
| Code: |
|
//check if username and password exists $sql = mysql_query("SELECT * FROM user WHERE username=$_POST['username']"); $result = mysql_num_rows($sql); if($result==0){ echo "Username already exists!"; exit; } |
Assume the tables are correct.
Does anyone know where I am going wrong??
