Update of /cvsroot/lambda/lambda/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2323/includes
Modified Files:
bootstrap.php
Log Message:
Added basic MySQL functions for PHP4/MySQL
Index: bootstrap.php
===================================================================
RCS file: /cvsroot/lambda/lambda/includes/bootstrap.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** bootstrap.php 21 Jun 2004 12:26:26 -0000 1.7
--- bootstrap.php 7 Jul 2004 10:37:50 -0000 1.8
***************
*** 46,67 ****
require(LAMBDA_CLASS . "lambdaMySQLi.class.php");
- /* Parse the configuration options so they can be used with lambdaMySQLi */
- $mc = lambda_mysqli_parseConfig($config['mysql']);
-
/* Create instance of MySQLi Class */
! $mysqli = @new lambdaMySQLi( $mc['hostname'],
! $mc['username'],
! $mc['password'],
! $mc['dbname'],
! $mc['port'],
! $mc['socket']);
!
! /* Verify MySQLi instance */
! if(mysqli_connect_errno()) {
! /* Throw fatal error */
! $handler->error(mysqli_connect_errno() . ": " . mysqli_connect_error(), true);
! } else {
! $handler->debug("Connected succesfully to MySQL", 2);
! }
/* Include Component Handler */
--- 46,51 ----
require(LAMBDA_CLASS . "lambdaMySQLi.class.php");
/* Create instance of MySQLi Class */
! $mysqli = @new lambdaMySQLi();
/* Include Component Handler */
|