Hi, I am having trouble making this code work correctly:
<?php
$sql = "SELECT a, b, c FROM 123";
$arr = array($row[0], $row[1], $row[2]);
$rs = $db->query($sql);
while($row = $rs->fetchRow()){
while(list($key, $val) = each($arr)){
print($val."<br/>\n");
}
}
?>
I know the problem is pushing the $arr array into the list/each statement because the $row[] values are already stated... how do I bypass this problem while still maintaining the makeup of this code fragment?
/peter