daily pastebin goal
16%
SHARE
TWEET

mysqlphp88

a guest Jun 13th, 2014 262 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function db_query($query, $database="", $conn="") {
  2.         global $ost;
  3.        
  4.                 if($conn) { /* connection is provided*/
  5.             $res = ($database)?mysql_db_query($database, $query, $conn):mysql_query($query, $conn);
  6.             } else {
  7.             $res = ($database)?mysql_db_query($database, $query):mysql_query($query);
  8.             }
  9.                
  10.         if(!$res && $ost) { //error reporting
  11.             $msg='['.$query.']'."\n\n".db_error();
  12.             $ost->logDBError('DB Error #'.db_errno(), $msg);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top