The following code is part of a web based interface to a Sybase
Database. It is used to build a table formatted string from the column/
value pairs returned from
ct_fetch and then create a page from it. My problem is this: it works
fine in IE5 but displays as text and tags in NS4.5. That would be OK
except that the company I work for has chosen Netscape as the browser of
choice. What am I missing as far as Netscape is concerned ?
if(@names=$DBH->ct_col_names())
{
# print "@names\n";
}
while(%dat=$DBH->ct_fetch(1,0))
{
$htmlstrng.="<TR>";
for($i=0;$i<=$#names;$i++)
{
if(defined($dat{$names[$i]}))
{
$htmlstrng.="<TD>".
$names[$i]."=".$dat{$names[$i]}."</TD>";
}
else
{
$htmlstrng.="<TD>". $names[$i]."= NULL</TD>";
}#endelse
if($i%5==4)
{
$htmlstrng.="</TR><TR>";
}#endif
}#endfor
$htmlstrng.="</TR>";
}#endwhile
}#end if
$DBH->ct_cancel(CS_CANCEL_ALL);
close DBH;
print<<EOstart;
Content-type: text/html
<HTML>
<HEAD>
<TITLE>HEREITIS</TITLE>
</HEAD>
<BODY>
<TABLE>
EOstart
print $htmlstrng;
print<<Fin_Mtl;
</TABLE>
</BODY>
</HTML>
Fin_Mtl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]