Writing a php script, which looks into a MySQL database.
Now I want the script to look into what data has been saved into my game table and output the data by positions in order iw goalkeeper 1st, defender 2nd, midfield 3rd. I thought it would be like this but it does not work - any idea thanks?
Now I want the script to look into what data has been saved into my game table and output the data by positions in order iw goalkeeper 1st, defender 2nd, midfield 3rd. I thought it would be like this but it does not work - any idea thanks?
Code:
$Query = "SELECT * from $TableName ORDER by (game.profile = 'Goalkeeper', game.profile = 'defender', game.profile = 'Midfield',)";