PHP Code:
player_id INT(6) AUTO_INCREMENT PRIMARY KEY,\
player_ip varchar(32) UNIQUE KEY,\
player_name varchar(32),\
With this you will get sql error if you try to insert same ip more than 1 time. Primary key can not be null, so NOT NULL is not needed.
PHP Code:
if(!SQL_MoreResults(Query))
{
//INSERT INTO ...
return
}
/// here I retrieve all information that I need from SQL
__________________