RE: Array
| From: | De Necker Henri | Date: | Mon, 29 Oct 2001 07:25:31 +0000 |
| Subject: | RE: Array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-72687@lists.php.net to get a copy of this message | ||
Now i did the following :
My output is only null or blank values!,but my data is there!
while($row=db_range()){
list($co_id,$surname,$init,$ba) = $row;
echo "$co_id $surname<br>"; # This works perfect!
$values[$i]['id'] = $co_id;
$values[$i]['surname'] = $surname;
$values[$i]['init'] = $init;
$values[$i]['ba'] = $ba;
$cid = $values[$i]['id'];
echo "$id<br>" ; # Doesnt wanna work
list($a,$b,$c,$d) = $values[$i];
echo "$a" ; # Doesnt wanna work
$i++;
}//end while 1