my database Contain table user
-> fields -> username
,userid
$user = (" SELECT userid,username FROM user ");
while ($row = @mysql_fetch_assoc( $user) )
{
$getalluser[] = $row;
}
i try to get results in array like this :
$users = array(
0=>array(
"Mark",
"http://localhost/test/image.php?u=1",
"Mark"
),
1=>array(
"Anandu",
"http://localhost/test/image.php?u=2",
"anandu"
),
2=>array(
"jeena",
"http://localhost/test/image.php?u=3",
"jeena"
)
);
NOTE :
Mark,Anandu,jeena
--> username AND u=1,u=2,u=3
--> userid