Quote:
Originally Posted by Paul M
Perhaps you should start by reading about php, these are pretty basic questions covered by any php online manual or book.
|
I actually know these stuff but they didn't work at the first place for some typo mistakes, that's why I asked.
I just have one more question:
If I had a MySQL table called players:
Code:
ID - Player
1 - John
2 - Paul
3 - Puyol
By using $_GET, how can I set the value of "$playername" to the player name in the database according to the ID.
For example, if someone opened index.php like:
index.php?id=1, then I want the $playername to be set to John, and if ?id=2 then to be set to Paul, then if ?id=3 then to be set as Puyol. According to what's on the database.