hey all
I have built a register page from beginnerphp/wrox and I have a little problem saving the data to the database. The whole form shows up but when I submit it I get the contents of my form but 2 error messages as well. Can anyone help?
function in_use($userid) {
global $user_tablename;
$query = "SELECT userid FROM $user_tablename WHERE userid = '$userid'";
$result = mysql_query($query);
if(!mysql_num_rows($result)) return 0;
else return 1;
}