Vergleich inc/db_mysql.php - 1.2.1 - 1.2.3

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

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

 * $Id: db_mysql.php 2209 2006-09-10 03:18:29Z Tikitiki $

 * $Id: db_mysql.php 2743 2007-02-09 00:05:26Z CraKteR $

 */

class databaseEngine

 */

class databaseEngine

Zeile 83Zeile 83
	 * @param boolean 1 if persistent connection, 0 if not.
* @return resource The database connection resource.
*/

	 * @param boolean 1 if persistent connection, 0 if not.
* @return resource The database connection resource.
*/

	function connect($hostname="localhost", $username="root", $password="", $pconnect=0)

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

	{
if($pconnect)
{

	{
if($pconnect)
{

Zeile 91Zeile 91
		}
else
{

		}
else
{

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

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

		}
return $this->link;
}

		}
return $this->link;
}

Zeile 288Zeile 288
	 */
function errno()
{

	 */
function errno()
{

		return mysql_errno($this->link);








		if($this->link)
{
return mysql_errno($this->link);
}
else
{
return mysql_errno();
}

	}

/**

	}

/**

Zeile 298Zeile 305
	 */
function error()
{

	 */
function error()
{

		return mysql_error($this->link);








		if($this->link)
{
return mysql_error($this->link);
}
else
{
return mysql_error();
}

	}

/**

	}

/**

Zeile 310Zeile 324
	{
if($this->error_reporting)
{

	{
if($this->error_reporting)
{

			echo "MySQL error: " . mysql_errno($this->link);
echo "<br />" . mysql_error($this->link);

			echo "MySQL error: " . $this->errno();
echo "<br />" . $this->error();

			echo "<br />Query: $string";
exit;
}

			echo "<br />Query: $string";
exit;
}