ive been working on my login script, and ive come to a halt. i need some help with writing somthing that will check if the name has already been used
if ( $current_Username = $Database_username)
echo "sorry user name taken";
continue with rest of functions
where current_username = $_POST[username] (from the form)
Database_username = "SELECT * FROM reg_info WHERE name = '$current_Username')
ive tried things along those lines, but i always get errors. Does anyone know how to correctly do it??
thanks for any help that anyone can offer :)