CoderCruise

mysqli_connect

(PHP 5)

mysqli_connectAlias di mysqli::__construct()

Descrizione

Questa funzione รจ sinonimo di: mysqli::__construct()

add a note add a note

User Contributed Notes 2 notes

up
-8
tuxedobob
1 month ago
When using this function rather than the OO syntax, this function will return FALSE on error, rather than an object.
up
-13
d4v3m0nk
2 months ago
Worthwhile noting that the MySQLi library can still open a permanent connection, but a different command isn't used. Simply prepend "p:" to the MySQL hostname or address.

Using classes:
$this->mysqli = new mysqli('p:'. mysql_host, mysql_user, mysql_password, mysql_database);

Using command:
$link = mysqli_connect('p:mysql_host', 'mysql_user', 'mysql_password', 'mysql_database');
To Top