I cant get this to work, According to the manual it should. What am I doing wrong?
do { $row1=$mydb->fetcharray(); $PersonID[]=$row1["PersonID"]; $j++; } while($j<$no);
Error: Fatal error: [] operator not supported for strings
I just found a solution.
$PersonID=array(); do { $row1=$mydb->fetcharray(); $PersonID[]=$row1["PersonID"]; $j++; } while($j<$no);
This works just fine. :-)
Another way you could do it is to use
array_push() function...
Di