Source for file connect.php
Documentation is available at connect.php
* Examples how to handle connections to MySQL.
* First connect try is without automatic error handling, second try is with automatic handling on.
* @author Sascha 'SieGeL' Pfalz <php@saschapfalz.de>
* @version 0.36 (21-Sep-2008)
* $Id: connect.php,v 1.4 2008/11/29 12:33:00 siegel Exp $
* @license http://opensource.org/licenses/bsd-license.php BSD License
require
('functions.inc.php');
* Turn off automatic error handling:
echo
("Unable to connect to database(".
$db->GetErrno().
"): ".
$db->GetErrorText().
$d['LF']);
echo
('Connected'.
$d['LF']);
echo
($d['LF'].
'Now trying to connect with automatic error handling:'.
$d['LF'].
$d['LF']);
* Now turn on automatic error handling:
echo
('Connected'.
$d['LF'].
$d['LF']);
Documentation generated on Sat, 07 Aug 2010 10:18:05 +0200 by phpDocumentor 1.4.3