PHP » PYTHON |
login |
register |
about
|
mysqli::real_connectmysqli_real_connect(PHP 5) mysqli::real_connect -- mysqli_real_connect — Opens a connection to a mysql server DescriptionObject oriented style (method)
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 ValuesReturns TRUE on success or FALSE on failure. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above example will output: Connection: Localhost via UNIX socket See Also
|
more
Recently updated
more
Most requested
more
Last requests
|