Vergleich inc/db_mysqli.php - 1.2.0 - 1.2.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 278Zeile 278
	 */
function errno()
{

	 */
function errno()
{

		//return mysqli_errno($this->link);




		if(version_compare(phpversion(), "5", ">="))
{
return mysqli_errno($this->link);
}

	}

/**

	}

/**

Zeile 288Zeile 291
	 */
function error()
{

	 */
function error()
{

		return mysqli_error($this->link);








		if (!$this->link) 
{
return mysqli_connect_error();
}
else
{
return mysqli_error($this->link);
}

	}

/**

	}

/**

Zeile 377Zeile 387
	 */
function field_exists($field, $table)
{

	 */
function field_exists($field, $table)
{

		global $db;

 
		$err = $this->error_reporting;
$this->error_reporting = 0;
$query = $this->query("SHOW COLUMNS FROM $table LIKE '$field'");

		$err = $this->error_reporting;
$this->error_reporting = 0;
$query = $this->query("SHOW COLUMNS FROM $table LIKE '$field'");