7

Receiving extra info from server response

view full story
linux-howto

http://stackoverflow.com – HI I am sending a username to my php file located on the server to check if the username exists in my database. If it does I want to send back a response which contains only "False", or else it will send back "True". Here is my php code: <?php $username = $_POST['username']; $password = $_POST['passsword']; $email = $_POST['email']; mysql_connect(//server name, server_admin, server_password) or die(mysql_error()); mysql_select_db("a1754417_word") or die (mysql_error()); $result = mysql_query("SELECT username FROM Users WHERE username = '$username'"); if(mysql_num_rows($result) != 0){ (HowTos)