Vergleich inc/db_mysqli.php - 1.2.1 - 1.2.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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)

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

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

Zeile 278Zeile 278
	 */
function errno()
{

	 */
function errno()
{

		if(version_compare(phpversion(), "5", ">="))





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

		{
return mysqli_errno($this->link);
}

		{
return mysqli_errno($this->link);
}