2) { echo "
$query
"; }; if (ora_parse($cursor, $query) <0) { echo("Parse failed! [ORA_PARSE ".ora_parse($cursor,$query)."]\n"); Ora_Logoff($connection); exit; } $ncols = ORA_Exec($cursor); while (Ora_Fetch($cursor) == 1) { $rkey = ORA_GetColumn($cursor,0); if ($debug>2) {Print "
rkey: $rkey\n";};
	$rkeys[] = $rkey;
	$images[$rkey] = ORA_GetColumn($cursor,1);
	if ($debug>2) {Print "image: $images[$rkey]\n";};
	$captions[$rkey] = ORA_GetColumn($cursor,2);
	if ($debug>2) {Print "caption: $captions[$rkey]\n
";}; $formats[$rkey] = ORA_GetColumn($cursor,3); } $num_images = sizeof ($images);?>
2) { print "

$num_images images found

\n"; } if ($num_images>1){ echo "\n"; echo "\n"; } $i=0; while ($i < $num_images){ $which = $rkeys[$i]; if ($debug >2) { print "$image\n
"; } if ($num_images >1) { if (eregi("JPEG",$formats[$which])) { print "\n"; } else { print "\n"; } } $i++; } if ($num_images > 1){ echo "\n"; echo "

$captions[$which]
$formats[$which]
\n"; } ?>