sanzuu sanzuu - 1 year ago 62
SQL Question

What is the fourth parameter in mysqli_connect()?

What is "forks" in mySQL

$connect = mysqli_connect("db location","username","password", "forks") or die(mysql_error());

Answer Source

Its database name


Parameter      Description
host           Optional. Specifies a host name or an IP address
username       Optional. Specifies the MySQL username
password       Optional. Specifies the MySQL password
dbname         Optional. Specifies the default database to be used
port           Optional. Specifies the port number to attempt to connect to the MySQL server
socket         Optional. Specifies the socket or named pipe to be used
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download