<?php require('path/to/DatabaseAccess.Class.php'); $DbAccess = new DatabaseAccess("yourHost", "dbName", "dbUser", "dbUserPassword"); $numberOfRowsUpdated = $DbAccess->SimpleNon("INSERT INTO `UserAccounts` (`FirstName`) VALUES ('')"); $IdOfRowInserted = $DbAccess->LastInsertID();
info at phpclasses dot org