/includes/dbi4php.phpdbi4php - Generic database access for PHP
The functions defined in this file are meant to provide a single API to the different PHP database APIs. Unfortunately, this is necessary since PHP does not yet have a common db API. The value of $GLOBALS['db_type'] should be defined somewhere to one of the following:
		dbi_affected_rows (line 442)
	Returns the number of rows affected by the last INSERT, UPDATE or DELETE.
Note: Use the () function to get error information if the connection fails.
		dbi_clear_cache (line 820)
	Clear out the db cache.
Return the number of files deleted.
		dbi_close (line 233)
	Closes a database connection.
This is not necessary for any database that uses pooled connections, such as MySQL, but a good programming practice.
		dbi_connect (line 83)
	Opens up a database connection.
Use a pooled connection if the db supports it and the db_persistent setting is enabled.
Notes:
		dbi_error (line 593)
	Gets the latest database error message.
		dbi_escape_string (line 657)
	Escapes a string accordingly to the DB type.
		dbi_execute (line 712)
	Executes a SQL query, supporting parameter binding in the ?-style
Note: Use the () function to get error information if the connection fails.
		dbi_fatal_error (line 639)
	Displays a fatal database error and aborts execution.
		dbi_fetch_row (line 404)
	Retrieves a single row from the database and returns it as an array.
Note: We don't use the more useful xxx_fetch_array because not all databases support this function.
Note: Use the () function to get error information if the connection fails.
		dbi_free_result (line 558)
	Frees a result set.
		dbi_get_blob (line 519)
	Get a BLOB (binary large object) from the database.
		dbi_get_cached_rows (line 736)
	Execute a SQL query. First, look to see if the results of this query are in a cache. If they are, then return them. If not, then run the query and store them in the cache. Of course, caching is only performed for SELECT queries.
Anything other than that will clear out the entire cache (until we add more intelligent caching logic).
		dbi_get_debug (line 811)
	Get the SQL debug status.
		dbi_init_cache (line 790)
	Specify the location of the cache directory.
This directory will need to world-writable if this is a web-based application.
		dbi_num_cached_queries (line 289)
	Return the number of queries that were cached.
		dbi_num_queries (line 281)
	Return the number of database queries that were executed.
(This does not included cached queries.)
		dbi_query (line 309)
	Executes an SQL query.
Note: Use the () function to get error information if the connection fails.
		dbi_set_debug (line 801)
	Enable SQL debugging.
This will keep an array of all SQL queries in the global variable $SQLLOG.
		dbi_update_blob (line 479)
	Update a BLOB (binary large object) in the database with the contents of the specified file.
A BLOB field should be created in a separete INSERT statement using NULL as the initial value prior to this call.
Documentation generated on Thu, 10 Jun 2010 17:08:21 -0400 by phpDocumentor 1.4.3