Changeset 6266 for temp/trunk/data/class/SC_DbConn.php
- Timestamp:
- 2006/10/13 13:22:44 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_DbConn.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_DbConn.php
r6262 r6266 22 22 23 23 // ¥³¥ó¥¹¥È¥é¥¯¥¿ 24 function SC_DbConn($dsn = "", $err_disp = true ){24 function SC_DbConn($dsn = "", $err_disp = true, $new = false){ 25 25 global $objDbConn; 26 26 27 27 // Debug¥â¡¼¥É»ØÄê 28 28 $options['debug'] = PEAR_DB_DEBUG; 29 // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ ˤÏÀܳ¤·¤Ê¤¤30 if(!isset($objDbConn->connection) ) {29 // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ÈºÆÀܳ¤Ê¤·¤Î¾ì¹ç¤ÏÀܳ¤·¤Ê¤¤ 30 if(!isset($objDbConn->connection) && !$new) { 31 31 if($dsn != "") { 32 32 $objDbConn = DB::connect($dsn, $options);
Note: See TracChangeset
for help on using the changeset viewer.
