\n"; echo ""; for ($i = 1; $i <= $ncols; $i++) { $column_name = oci_field_name($q, $i); echo "$column_name"; } echo ""; while ($row = oci_fetch_array($q, OCI_ASSOC+OCI_RETURN_NULLS)) { print "\n"; foreach ($row as $zellen) { if (!isset($zellen)) { $zellen = "_"; } print " $zellen "; } print "\n"; } print "\n"; ?>