Answers for "How can we connect to a MySQL database from a PHP script?"

PHP
-1

php sql server connect

$serverName = "serverName\sqlexpress"; //serverName\instanceName
$connectionInfo = array( "Database"=>"dbName", "UID"=>"userName", "PWD"=>"password");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
Posted by: Guest on February-24-2020

Code answers related to "How can we connect to a MySQL database from a PHP script?"

Browse Popular Code Answers by Language