Vergleich inc/db_mysqli.php - 1.2.7 - 1.2.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: db_mysql.php 1370 2006-04-16 13:47:01Z chris $

 * $Id: db_mysqli.php 3352 2007-09-30 08:17:16Z chris $

 */

class databaseEngine

 */

class databaseEngine

Zeile 85Zeile 85
	 */
function connect($hostname="localhost", $username="root", $password="", $pconnect=0, $newlink=false)
{

	 */
function connect($hostname="localhost", $username="root", $password="", $pconnect=0, $newlink=false)
{

		$this->link = @mysqli_connect($hostname, $username, $password) or $this->dberror();









		list($hostname, $port) = explode(":", $hostname, 2);
if($port)
{
$this->link = @mysqli_connect($hostname, $username, $password, "", $port) or $this->dberror();
}
else
{
$this->link = @mysqli_connect($hostname, $username, $password) or $this->dberror();
}

		return $this->link;
}


		return $this->link;
}


Zeile 97Zeile 105
	 */
function select_db($database)
{

	 */
function select_db($database)
{

		return @mysqli_select_db($this->link, $database) or $this->dberror();








		global $config;

$success = @mysqli_select_db($this->link, $database) or $this->dberror();
if($success && $config['db_encoding'])
{
$this->query("SET NAMES '{$config['db_encoding']}'");
}
return $success;

	}

/**

	}

/**

Zeile 187Zeile 202
		{
$this->explain .= "<table style=\"background-color: #666;\" width=\"95%\" cellpadding=\"4\" cellspacing=\"1\" align=\"center\">\n".
"<tr>\n".

		{
$this->explain .= "<table style=\"background-color: #666;\" width=\"95%\" cellpadding=\"4\" cellspacing=\"1\" align=\"center\">\n".
"<tr>\n".

				"<td style=\"background-color: #ccc;\">{$debug_extra}><div><strong>#".$this->query_count." - Write Query</strong></div></td>\n".

				"<td style=\"background-color: #ccc;\">{$debug_extra}<div><strong>#".$this->query_count." - Write Query</strong></div></td>\n".

				"</tr>\n".
"<tr style=\"background-color: #fefefe;\">\n".
"<td><span style=\"font-family: Courier; font-size: 14px;\">".htmlspecialchars_uni($string)."</span></td>\n".

				"</tr>\n".
"<tr style=\"background-color: #fefefe;\">\n".
"<td><span style=\"font-family: Courier; font-size: 14px;\">".htmlspecialchars_uni($string)."</span></td>\n".