In my user_table, I have "UID", and "Gameid". And of course, when I run the query I get something like:
array() {
[0] => array() {
UID => 1,
gameid => 334613
},
[1] => array() {
UID => 2,
gameid => 704234
},
[2] => array() {
UID => 3,
gameid => 704234
}
}
The UID is auto incremented, and the gameid is based off what the user is playing currently based off steam and the value is always going to be random. So I want to take the above arrays and place them into a new array sorted by gameid.
I hope that makes sense, let me know if I need to clarify, thank you in advanced.
Sorry for not explaining right,
I'm trying to get the above array into this:
$array = array (
(334613) => array (
[0] => 1
),
(704234) => array (
[0] => 2,
[1] => 3
)
);
Thank you again!