Update of /cvsroot/phpmp/phpMP/dba
In directory sc8-pr-cvs1:/tmp/cvs-serv6520
Modified Files:
mysql.dba
Log Message:
Dropped the select db calls since we don't really need them.
Index: mysql.dba
===================================================================
RCS file: /cvsroot/phpmp/phpMP/dba/mysql.dba,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** mysql.dba 6 Nov 2002 03:28:19 -0000 1.18
--- mysql.dba 30 Nov 2002 23:40:09 -0000 1.19
***************
*** 21,26 ****
{
$this->ident_link = $connection;
!
! $this->selectDB (DB_NAME, $connection);
return $this->ident_link;
}
--- 21,25 ----
{
$this->ident_link = $connection;
!
return $this->ident_link;
}
***************
*** 69,94 ****
}
}
-
- function selectDB ( $db_name ) {
-
- if ( $this->ident_link == 0 )
- {
- $db = $this->connect();
- }
- else
- {
- $db = $this->ident_link;
- }
-
- if (!$db)
- {
- return 0;
- }
- else
- {
- $result = @mysql_select_db($db_name, $db);
- return $result;
- }
- }
function numRows ($query)
--- 68,71 ----
***************
*** 183,185 ****
}
! ?>
\ No newline at end of file
--- 160,162 ----
}
! ?>
|