$sql = "DELETE FROM user WHERE `username` = 'theusernamestodelete'"; $result = mysql_query($sql); echo "Users deleted!";