what's wrong with this code?
- by Piyush
$child= array();
$i = 0;
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$child[i] = $row['userId'];
$i++;
}
$i = 0;
while($i<=5)
{
echo $child[i];
$i++;
}
It is printing same value.