For applications that don't require complex database-specific queries, you can use PHP's built-in DBX functions.
Before you can use the DBX functions, you must enable support at compile time if you are using Linux or enable the DBX module if you are using Windows.
If you compiled PHP using Apache's APXS functionality (compile --with-apxs=/path/to/apache/bin/apxs), then adding functionality to the PHP module is a breeze.
Before recompiling PHP, I first suggest that you delete the config.cache file and clean up files left over from the previous compile. This can be done like this:
cd /path/to/php/source rm config.cache make clean
After you issue the make clean command, you will notice ...