ini_set('display_errors', true); error_reporting(E_ALL); $username = $_POST["RGusername"]; $password = md5($_POST["RGpassword"]); if($username&&$password) { mysql_connect('localhost','root','asdfr'); mysql_select_db("database") or die("Couldn't find database"); $Query = mysql_query("SELECT * FROM account WHERE Username='$username' LIMIT 1"); $id = (mysql_insert_id() + 1); $rows = mysql_num_rows($Query); echo $rows ; if($rows == 0) { mysql_query("INSERT INTO `database`.`account' (User_ID, Username, Password) VALUES(($id), $username, $password)"); echo $password; ?><html> <br /> </html> echo $rows; ?><html> <br /> </html> echo $username; ?><html> <br /> </html> echo $id; ?><html> <br /> </html> if(mysql_num_rows($Query) == 1) { // Successful account creation echo("Account created"); } else echo("Account not created, problem hit"); } else echo("Username already exists"); } else echo("Please enter all feilds"); ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)