Jump to content

how do i grab and throw in another array?


Monkuar

Recommended Posts

$result = $db->query('SELECT gold from users WHERE id IN ('.$ids100.')') or error('Unable to fetch forum topic count', __FILE__, __LINE__, $db->error());
while ($gold = $db->fetch_assoc($result)){
$usersgold[] = $gold['gold'];
}
foreach (array_unique($winninguser_ids100) as $user_id[$usersgold]){

echo var_dump($user_id) .'<br>';

}

 

var_dump shows NULL/blank? why? I need to pass the $usersgold[] as a key for each $user_id, how?

 

 

In other words, I need to the $usersgold[] array to pass through with $user_id so I can use it in the for loop.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.