First download php-5.1.1-installer.exe
Only 2M more, brush down, Okok, and then run, go to D plate bar, Bon voyage, click Next. Then build a directory PHP, new file info.php input code:
<body>
? Phpinfo ();?>
</body>
Data http://localhost/php/info.php in IIS
If there is a long list of PHP Version 5.1.1 and so on, congratulations, configuration well.
As shown in figure:
New Php/data/db.mdb, Build table szd_t, enter point data, as shown in figure:
To create a file default.php; Enter:
<?php//Read MDB database routines
$conn = new COM ("ADODB. Connection ");
$connstr = "Driver={microsoft Access DRIVER (*.mdb)}; Dbq= ". Realpath ("Data/db.mdb");
$conn->open ($CONNSTR);
$rs = new COM ("ADODB. RecordSet ");
$rs->open ("SELECT * from szd_t", $conn, 1, 1);
while (! $rs->eof) {
$f = $rs->fields (1);
Echo $f->value;
$rs->movenext ();
}
?>
Browse, also print you just in the database record, successful success, Ha ha, finished. As shown in figure: