Changeset 5236 for trunk/include/dblayer/functions_sqlite.inc.php
- Timestamp:
- Mar 21, 2010, 11:51:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dblayer/functions_sqlite.inc.php
r5230 r5236 34 34 */ 35 35 36 function pwg_db_connect($host, $user, $password, $database , $die=true)36 function pwg_db_connect($host, $user, $password, $database) 37 37 { 38 38 global $conf; … … 48 48 $sqlite_open_mode = SQLITE3_OPEN_READWRITE; 49 49 } 50 try { 51 $link = new SQLite3($db_file, $sqlite_open_mode); 52 } catch (Exception $e) { 53 my_error('sqlite::open', $die); 50 51 $link = new SQLite3($db_file, $sqlite_open_mode); 52 if (!$link) 53 { 54 throw new Exception('Connection to server succeed, but it was impossible to connect to database'); 54 55 } 55 56 … … 63 64 64 65 return $link; 65 }66 67 function pwg_select_db($database=null, $link=null, $die=null)68 {69 return true;70 66 } 71 67
Note: See TracChangeset
for help on using the changeset viewer.