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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.