/examples/functions.inc.php

Description

Set of functions used in the MySQL examples.

Includes
require_once ('../mysqldb_class.php') (line 16)

Load in the class so that the examples are working.

Functions
DBFooter (line 49)

Prints out the amount of queries and the time required to process them.

void DBFooter (string $lf, mixed &$dbh)
  • string $lf: The linefeed character to use.
  • mixed &$dbh: The database object.
WhichBR (line 26)

Returns an associative array with sapi-type name and required line break char.

Use this function to retrieve the required line-break character for both the browser output and shell output. Currently only two keys are included:

  • "SAPI" => The sapi type of PHP (i.e. "cli")
  • "LF" => The line-break character to use (i.e. "
    ")

  • return: The associative array as described.
array WhichBR ()

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