/mysqldb_class.php

Description

Database Class provides a consistent API to communicate with MySQL or Oracle Databases.

This one implements the MySQL API. Requires dbdefs.inc.php for global access data (user,pw,host,port,dbname,appname)

Classes
Class Description
db_MySQL Main class definition.
Constants
DBOF_DEBUGFILE = (1<<2) (line 35)

DEBUG: Debug to error_log()

DBOF_DEBUGOFF = (1<<0) (line 19)

DEBUG: No Debug Info

DBOF_DEBUGSCREEN = (1<<1) (line 27)

DEBUG: Debug on-screen

DBOF_MYSQL_COLFLAGS = 3 (line 64)

These defines are used in DescTable().

  • see: DescTable
  • since: 0.37
DBOF_MYSQL_COLNAME = 0 (line 61)

These defines are used in DescTable().

  • see: DescTable
  • since: 0.37
DBOF_MYSQL_COLSIZE = 2 (line 63)

These defines are used in DescTable().

  • see: DescTable
  • since: 0.37
DBOF_MYSQL_COLTYPE = 1 (line 62)

These defines are used in DescTable().

  • see: DescTable
  • since: 0.37
DBOF_RETURN_ALL_ERRORS = 2 (line 52)

Connect and error handling (V0.28+).

If DBOF_SHOW_NO_ERRORS is set and an error occures, the class still reports an an error of course but the error shown is reduced in informational details to avoid showing sensible informations in a productive environment. If DBOF_SHOW_ALL_ERRORS is set the maximum possible details are shown. Set RETURN_ALL_ERRORS if you want to handle errors yourself, in this case the class returns error codes if something goes wrong.

DBOF_SHOW_ALL_ERRORS = 1 (line 51)

Connect and error handling (V0.28+).

If DBOF_SHOW_NO_ERRORS is set and an error occures, the class still reports an an error of course but the error shown is reduced in informational details to avoid showing sensible informations in a productive environment. If DBOF_SHOW_ALL_ERRORS is set the maximum possible details are shown. Set RETURN_ALL_ERRORS if you want to handle errors yourself, in this case the class returns error codes if something goes wrong.

DBOF_SHOW_NO_ERRORS = 0 (line 50)

Connect and error handling (V0.28+).

If DBOF_SHOW_NO_ERRORS is set and an error occures, the class still reports an an error of course but the error shown is reduced in informational details to avoid showing sensible informations in a productive environment. If DBOF_SHOW_ALL_ERRORS is set the maximum possible details are shown. Set RETURN_ALL_ERRORS if you want to handle errors yourself, in this case the class returns error codes if something goes wrong.

Documentation generated on Sat, 07 Aug 2010 10:18:11 +0200 by phpDocumentor 1.4.3