Jump to content

DB to Array with for


megafu

Recommended Posts

hi everyone ... :) having a little problem with this:

i have in my DB somethink like:  userID1 userID2 userID3 .. etc

and i would like to make a something that puts all thos values in a array so i can use it.

[code]
for ($id = 0; $id <= $allIDS; $id++)
{
$realID = $id+1:
$userID = "user".$realID ;
$myarray[$id] = $row ['$userID'];
}
[/code]

i tried to use whats above. but it did not work .:S dont really understand why, or can find any solution.

Reaaallyy need help. thanks .  8)
Link to comment
https://forums.phpfreaks.com/topic/30720-db-to-array-with-for/
Share on other sites

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.