I have a problem with num_rows (well I think)
I have a player table with about 1700 ID's
there aren't 1700 players/rows though, more like 1600 rows (some players have been deleted, say for example PlayerID=1580).
The thing is, when I try to do a query (as described below), He counts the rows and the player gets ID 1601 instead of 1701 (the previous player has ID=1700, so the new one should get 1701, and not 1601, which the player gets due to MySQL counting the rows.
How can I overcome this problem?
----if needed --- here's a further description---------
This is a bit complicated for me to describe, but I will try my best.
I have 2 tables (Player & Stats)
I have a form that adds a player to the MySQL database and after the INSERT player query is done, I can directly choose (on the following php-page) to add the player to a team and insert his stats. This is all done by INNER JOIN etc..
However, this is not the problem.
The problem is that when I add a player he gets say PlayerID=1710, so on the following page when I insert player to the table stats, I use his PlayerID in the query.
The stats table has the following essential columns (PlayerID, TeamID)
thanks a bunch for any assistance you can offer me!