I am busy doing an UPDATE/INSERT request, but here is the crux:
table PLAYERS {
player_id
game_id
team_id
position
number
}
What is supposed to happen is the following:
I test if there is an entry where
player_id = '$player_id' AND game_id = '$game_id' AND team_id = '$team_id'
.
If there is, then the following happens:
position = '$position' AND number = '$number'
Is there any way I can do this using just MySQL query language, without the need for PHP validation between queries?