Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
An extremely easy, speedy way to deal with a database from a PHP script. Results are read row by row, as you need them - less demand on memory than loading all result rows into a single monster array =P. You can seek back and forth for the result row you want at any time. <br>
<br>
Includes an abstract base class, and a subclass to work with a MySQL db. Write your own subclass of CDBAbstract to work with any PHP-supported database software! <br>
<br>
<b>Changes in 1.2: (by Michael Howitz)</b><br>
- added support for: Commit, Rollback, SetAutoCommit<br>
- added subclass for oracle (OCI8) support<br>
<br>
<b>Changes in 1.2.1: (by Dirk Howard)</b><br>
added subclass for Postgresql (pgsql) support<br>
|
|
Oracle Database abstract layer
|
|
This is a class i have been working on.
The most important things for me where portability and fast but reliable working.<br>
I would very much appriciate any feedback and pointing out any bugs or bad programing decidions.<br>
I allmost forgot: the class was tested with odbc under win2k and mysql under red hat 7.0. It would be nice if someone could test it with ms sql server (the support for it was inplemented just with the reffrence from the php manual).<br>
I'm currently working on postgreSql support, so v1.1 could be expected soon.
|
|
db_driver is an abstraction layer equiped with table & database creation/alteration.<br>
<br>
Makes it real easy to manage your databases.
|
|
ezSQL is a widget that makes it ridiculously easy for you to use mySQL or Oracle8 database(s) within your PHP scripts (more db's coming soon).
|
|
MySQL abstraction layer class. Easy to use. More functions than usual MySQL PHP functions to make it easier to port to another DB server platform.
|
|
Slight changes to Simple Data Abstraction Class by ICEMAC. Changes to handle Commits / Rollbacks in MYSQL transactional tables.
|
|
This DBClass allows a coder not only to easily run SQL queries and catch/log errors in case of failure but also to easily get result data epresented into php arrays or html tables with a built-in pagination control.
|
|
I needed a quick way to switch quickly between MySQL and MS SQL Server for applications, so I wrote two classes, that provide a modular, consistent API that can be used for either database. Changing out your DB is as easy as dropping in the proper DB_whatever.php file into the dir that DB.php lives in, then changing the $dbtype var before you require() DB.php
|
|
An object orientated database absraction layer. Meant for use with mySQL. Supports persistant and non persistant connections, error handling and customised logging. Designed to separate application from database logic. Returns all required elements, result resources, rows and field sizes and names.
|
|
Abstract Layer class to run with Oracle Database.
|
|
Class that provides an abstraction layer above the PHP PostgreSQL API. This centralizes all the database connection info such as host, port, username and password. Same class can be used to connect to multiple databases, local and remote, on different ports. <br>
In addition to "normal" stuff that you'd expect from a db abstraction layer, it also supports transactions and comprehensive error checking/management.<br>
Revision History:
*** see class header for revision history ***
|
|
mysql_fetch_assoc "converts"
one row from the table into an array.
mysql_insert_array "converts"
an array into one row from the table.
|