File: |
class_mdb.php |
Role: |
Class source |
Content type: |
text/plain |
Description: |
The class file |
Class: |
mdb
Access Microsoft Access .mdb database files |
Author: |
By Peter Klauer |
Last change: |
Changed function execute() to allow INSERT, UPDATE and DELETE.
Thanks to Pete from DigiOz Multimedia for this hint.
Other changes:
added new field $rowcount which may be written by function execute()
added new field $ok which is filled after mdb() or open() is called
changed function execute( ) to have a second (optional) parameter $getrowcount (default false)
changed function mdb() to call open() and return the success to $mdb->ok as boolean
changed function open() to return the success as boolean
Using this class gets even more simple: function mdb() now calls open() directly
instead of
$mdb = new mdb('/path/to/my/database.mdb');
$mdb->open( );
$mdb->execute('select * from ...');
now simply do
$mdb = new mdb('/path/to/my/database.mdb');
$mdb->execute('select * from ...');
|
Date: |
18 years ago |
Size: |
4,428 bytes |
|
|
|