Update of /cvsroot/phpbb-php5mod/phpbb-php5/db
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26000
Modified Files:
mysqli.php
Log Message:
Finished converting the constructor function, still NOT READY, but we are getting closer! :)
Index: mysqli.php
===================================================================
RCS file: /cvsroot/phpbb-php5mod/phpbb-php5/db/mysqli.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** mysqli.php 24 Sep 2004 02:36:20 -0000 1.1
--- mysqli.php 28 Sep 2004 03:52:51 -0000 1.2
***************
*** 40,43 ****
--- 40,45 ----
// Constructor
//
+
+
function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
{
***************
*** 48,52 ****
$this->dbname = $database;
! $this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password);
if( $this->db_connect_id )
--- 50,54 ----
$this->dbname = $database;
! $this->db_connect_id = ($this->persistency) ? mysqli_connect($this->server, $this->user, $this->password) : mysqli_connect($this->server, $this->user, $this->password);
if( $this->db_connect_id )
***************
*** 55,63 ****
{
$this->dbname = $database;
! $dbselect = mysql_select_db($this->dbname);
if( !$dbselect )
{
! mysql_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
--- 57,65 ----
{
$this->dbname = $database;
! $dbselect = mysqli_select_db($this->dbname);
if( !$dbselect )
{
! mysqli_close($this->db_connect_id);
$this->db_connect_id = $dbselect;
}
|