Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 5.3Mb
PDF (A4) - 5.3Mb mysqli_connect

Copyright 1997-2022 the PHP Documentation Group.


This function is an alias of: mysqli::__construct


If mysqli exception mode is not enabled and a connection fails, then mysqli_connect returns false instead of an object. The mysqli_connect_error function can be used to fetch the connection error.