Changeset 20462 for trunk/include
- Timestamp:
- Jan 30, 2013, 12:12:22 PM (12 years ago)
- Location:
- trunk/include/dblayer
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dblayer/functions_mysql.inc.php
r19703 r20462 41 41 throw new Exception("Can't connect to server"); 42 42 } 43 if (mysql_select_db($database, $link)) 44 { 45 return $link; 46 } 47 else 43 if (!mysql_select_db($database, $link)) 48 44 { 49 45 throw new Exception('Connection to server succeed, but it was impossible to connect to database'); … … 139 135 } 140 136 141 function pwg_db_changes( $result)137 function pwg_db_changes() 142 138 { 143 139 return mysql_affected_rows(); … … 174 170 } 175 171 176 function pwg_db_insert_id( $table=null, $column='id')172 function pwg_db_insert_id() 177 173 { 178 174 return mysql_insert_id(); 179 175 } 180 176 181 function pwg_db_close( $link=null)182 { 183 return mysql_close( $link);177 function pwg_db_close() 178 { 179 return mysql_close(); 184 180 } 185 181
Note: See TracChangeset
for help on using the changeset viewer.