Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. $dbconfig['db_type'] = 'mysqli';
  2.  
  3. vtigerlibrariesadodbdriversadodb-mysqli.inc.php
  4.  
  5. if ($ok) {
  6. if ($argDatabasename) return $this->SelectDB($argDatabasename);
  7. return true;
  8. } else {
  9. if ($this->debug)
  10. ADOConnection::outp("Could't connect : " . $this->ErrorMsg());
  11. $this->_connectionID = null;
  12. return false;
  13. }
  14.  
  15. if ($ok) {
  16. mysqli_query($this->_connectionID, "SET SESSION sql_mode = 'TRADITIONAL'");
  17. if ($argDatabasename) return $this->SelectDB($argDatabasename);
  18. return true;
  19. } else {
  20. if ($this->debug)
  21. ADOConnection::outp("Could't connect : " . $this->ErrorMsg());
  22. $this->_connectionID = null;
  23. return false;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement