script output doesn't show up
| From: | John Meyer | Date: | Tue, 13 Mar 2001 04:57:23 +0000 |
| Subject: | script output doesn't show up | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43619@lists.php.net to get a copy of this message | ||
Here is the code
<?php
$connectionid = odbc_connect("usctoday","","");
$resultid = odbc_do($connectionid,"SELECT S_FNAME, S_LNAME, S_BIO FROM
STAFF;");
$numrows = odbc_num_rows($resultid);
for ($i = 1; $i<=$numrows;$i++) {
odbc_fetch_row($resultid);
$fname = odbc_result($resultid,"S_FNAME");
$lname = odbc_result($resultid,"S_LNAME");
?>
<h2><?php echo("$fname"); ?> <?php echo("$lname");
?></h2>
<?php
}
odbc_close($connectionid);
?>
Problem is that the script output doesn't show up. Any idears?