Changeset 21088 for trunk


Ignore:
Timestamp:
Mar 2, 2013, 1:19:06 PM (11 years ago)
Author:
mistic100
Message:

feature:65 add pwg_db_errno and pwg_db_error

Location:
trunk/include/dblayer
Files:
2 edited

Legend:

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

    r20510 r21088  
    180180}
    181181
     182function pwg_db_errno()
     183{
     184  return mysql_errno();
     185}
     186
     187function pwg_db_error()
     188{
     189  return mysql_error();
     190}
     191
    182192function pwg_db_close()
    183193{
  • trunk/include/dblayer/functions_mysqli.inc.php

    r20510 r21088  
    190190}
    191191
     192function pwg_db_errno()
     193{
     194  global $mysqli;
     195 
     196  return $mysqli->errno;
     197}
     198
     199function pwg_db_error()
     200{
     201  global $mysqli;
     202 
     203  return $mysqli->error;
     204}
     205
    192206function pwg_db_close()
    193207{
Note: See TracChangeset for help on using the changeset viewer.