PHP Classes

File: class_mdb.php

Recommend this page to a friend!
  Classes of Peter Klauer  >  mdb  >  class_mdb.php  
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
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: 15 years ago
Size: 4,428 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo
For more information send a message to info at phpclasses dot org.