Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<HTML>
<BODY bgcolor=#FFFFFF>
<Table border=1 width="100%" bgcolor="darkgray" cellpadding=0 cellspacing=0>
<?
$conn = new COM("ADODB.Connection") or die("Cannot start ADO");
//creates the connection object
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\WWWRoot\\kb244com\\www\\_private\\database\\SiteDb2k.mdb;Mode=ReadWrite;Persist Security Info=False");
//opens a connection using a connection string, for some
//people "DSN=name" will suffice if you are using a dNS connection
$rs = $conn->Execute("Select * from Postings order by PostDate DESC");
//opens a recordset from the connection object
while (!$rs->EOF) {
//keep looping until end of file
?>
<? $fv = $rs->Fields("PostDate"); ?>
//in ASP the date comes back correctly for a
// Date/time type, not sure why it comes back different
// in PHP
<TR>
<TD width="20%" align=left bgcolor=#B5BED6 nowrap><b><? echo $fv->value; ?></b></TD>
<? $fv = $rs->Fields("PostTopic"); ?>
<TD align=center bgcolor=#B5BED6><i><? echo $fv->value; ?></i></TD>
</TR>
<TR>
<TD colspan=2 align=left bgcolor="lightgrey">
<? $fv = $rs->Fields("Post"); ?>
<?
echo ereg_replace( "\n", "<br>", $fv->value );
?>
</TD>
</TR>
<TR>
<? $fv = $rs->Fields("Signature"); ?>
<TD colspan=2 align=right bgcolor=#B5BED6><? echo $fv->value; ?></TD>
</TR>
<tr>
<td colspan=2>á</td>
</tr>
<?
$rs->MoveNext();
}
$rs->Close();
?>
</Table>
</Body>
</HTML>