|
|
|
|
|
|
| |
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 | | | Beginners guide to PHP and MySQL Categories : PHP, Beginner Guides, Databases, MySQL, Installation | | | Building A Persistent Shopping Cart With PHP and MySQL Categories : PHP, MySQL, Databases, Ecommerce | | | Creating Auto-incrementing ID Fields with PHP and Oracle Categories : PHP, PHP options/info, Databases, Oracle | | | 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 Sybase with PHP Categories : PHP, Sybase, Databases | | | User identification using cookies in PHP and MySQL Categories : PHP, Databases, MySQL, Cookies | | | Custom MySQL-functions Categories : Databases, MySQL, PHP, PHP Functions | | | Simple ODBC Connections with PHP Categories : PHP, ODBC, Databases | | | Simple Connection to Informix with PHP Categories : PHP, Informix, Databases | | | Using PEAR HTML_Template_IT For Modular Interface Design Categories : PHP, PEAR, Templates | | | Multicolumn Output from a Database with PHP Categories : PHP, Databases, HTML and PHP, MySQL | | | Creating an IE-Only Database Driven Menu System With PHP, MySQL and DHTML Categories : PHP, MySQL, Databases, DHTML | |
| |
|
|