|
mysqli::real_connectmysqli_real_connectOpens a connection to a mysql server DescriptionObject oriented style
bool mysqli::real_connect
([ string
$host
[, string $username
[, string $passwd
[, string $dbname
[, int $port
[, string $socket
[, int $flags
]]]]]]] )Procedural style
bool mysqli_real_connect
( mysqli
$link
[, string $host
[, string $username
[, string $passwd
[, string $dbname
[, int $port
[, string $socket
[, int $flags
]]]]]]] )Establish a connection to a MySQL database engine. This function differs from mysqli_connect:
Parameters
Return Values
Returns ExamplesExample #1 mysqli::real_connect example Object oriented style
<?php Object oriented style when extending mysqli class
<?php Procedural style
<?php The above examples will output: Success... MySQL host info: localhost via TCP/IP Notes
See Also
|