Changeset 20462 for trunk/include


Ignore:
Timestamp:
Jan 30, 2013, 12:12:22 PM (12 years ago)
Author:
mistic100
Message:

feature:65 Add support for PHP mysqli extension, activated by default, remove returns of link_identifier

Location:
trunk/include/dblayer
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/dblayer/functions_mysql.inc.php

    r19703 r20462  
    4141    throw new Exception("Can't connect to server");
    4242  }
    43   if (mysql_select_db($database, $link))
    44   {
    45     return $link;
    46   }
    47   else
     43  if (!mysql_select_db($database, $link))
    4844  {
    4945    throw new Exception('Connection to server succeed, but it was impossible to connect to database');
     
    139135}
    140136
    141 function pwg_db_changes($result)
     137function pwg_db_changes()
    142138{
    143139  return mysql_affected_rows();
     
    174170}
    175171
    176 function pwg_db_insert_id($table=null, $column='id')
     172function pwg_db_insert_id()
    177173{
    178174  return mysql_insert_id();
    179175}
    180176
    181 function pwg_db_close($link=null)
    182 {
    183   return mysql_close($link);
     177function pwg_db_close()
     178{
     179  return mysql_close();
    184180}
    185181
Note: See TracChangeset for help on using the changeset viewer.