03.08.2010, 12:37
I'd rather add an SQL ID in the database as well. This should be the first value in the table and should be set as Primary Key and Auto-increment.
You can then retrieve this value when someone registers (mysql_insert_id) and assign it to a variable. You can then use this value to execute future queries on the database without retrieving the player's name every time.
And you can use sscanf instead of explode to split rows into the data you need, as TheKiller already suggested.
You can then retrieve this value when someone registers (mysql_insert_id) and assign it to a variable. You can then use this value to execute future queries on the database without retrieving the player's name every time.
And you can use sscanf instead of explode to split rows into the data you need, as TheKiller already suggested.