WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Database Abstraction with PEAR
Categories : PHP, Pear, Databases
codewalkers
codewalkers
Date : 2003-09-06
Grade : 0 of 5 (graded 0 times)
Viewed : 11780
Search : More Articles by codewalkers
Action : Grade This Article
Tools : My Favotite Articles


Submit your own code examples 
 


Database Abstraction

So you've written a great application with PHP and it is up and running smooth. Then, your boss calls and tells you that your company won't be using MySQL anymore. You're moving to Oracle. Your application is dead in the water. You should have used database abstraction.

It's a grim tale that happens all too often. Don't think it can't happen to you. It will. When you least expect it. But don't worry, there are ways to plan for situations like this. Wouldn't you love to just smile at your boss and tell him it won't be a problem? Well, today you will learn just how to do that.

Database Abstraction is a method of coding that allows you to concentrate on coding rather than the syntax for a particular database API. You use generic methods to access the database, any database. Obviously, you need additional code or libraries to do database abstraction. That is where PEAR comes in. PEAR includes a database abstraction class that you can use in your scripts. There are other abstraction classes out there, but for the purpose of this tutorial we will focus on the one provided with PEAR.

Read More...









Saving Images in MySQL
Categories : MySQL, PHP, Graphics, Databases
PHP 101 Part 8 of 15 : Databases and Other Animals
Categories : PHP, Beginner Guides, Databases
Simple Connection to Oracle with PHP
Categories : PHP, Oracle, Databases
Introduction to using PHP 5.0 and SQLite
Categories : PHP, SQLite, Databases
Watching The Web
Categories : PHP, Databases, MySQL, HTTP, MD5
Building XML Trees with PEAR's XML_Tree Class
Categories : PHP, Pear, XML
Referer Statistics
Categories : PHP, MySQL, HTTP, Databases
PHP 101 Part 9 of 15 : SQLite My Fire!
Categories : PHP, Beginner Guides, Databases, SQLite
Simple Connection to PostgreSQL with PHP
Categories : PHP, PostgreSQL, Databases
Beginners guide to PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, Installation
Descriptions of Common Data Types
Categories : MySQL, Databases, PHP, PHP options/info, General
Apache, PHP, and PostgreSQL on RedHat Linux
Categories : Apache, PHP, Databases, PostgreSQL, Linux
Using PEAR Console_Getopt To Process The PHP Command Line
Categories : PHP, PEAR, Command Line
Simple Connection to Informix with PHP
Categories : PHP, Informix, Databases
Simple Connection to Sybase with PHP
Categories : PHP, Sybase, Databases