Here is my Array:
array (size=2)
100 =>
array (size=2)
'trade' => int 5
'gold' => int 10
101 =>
array (size=2)
'trade' => int 10
'gold' => int 20
The key of the Array is the ID of the users which I want to run in a query. I figured out I probably need to use IN, example:
SELECT * FROM `users` WHERE `id` IN (:id)
(:id is replaced by $id in the script)
Now when I do
SELECT * FROM `users` WHERE `id` IN (100,105)
(for test purposes) it works.
Although it needs to be prepared so when I set
$id = 100,101;
or
$id = ‘100,101’;
it only displays the 100 record.
Any ideas? Thanks