11.12.2010, 09:31
How to check if the name is already registered?
mysql_query("SELECT username FROM users WHERE username = 'Calgon'");
mysql_store_result();
if(mysql_num_rows() > 0) {
// User exists
}
else {
// User does not exist
}
mysql_free_result();