Syntax:
mysqli_connect ( "host", "username", "password", "database_name" )
Return values:
Exampl;e Program: Below is the implementation of mysqli_connect() function.
<?php mysqli_connect( "localhost" , "root" , "" , "GFG" ); if (mysqli_connect_error()) echo "Connection Error." ; else echo "Database Connection Successfully." ; ?> |