0

How to make a Link between Php and Sql server

How to established link between Php and Sql database

11th Feb 2019, 3:09 PM
Shiv Developer
Shiv Developer - avatar
2 Antworten
0
php 7: sqlsrv_connect — Opens a connection to a Microsoft SQL Server database sqlsrv_connect ( string $serverName [, array $connectionInfo ] ) : Opens a connection to a Microsoft SQL Server database. By default, the connection is attempted using Windows Authentication. To connect using SQL Server Authentication, include "UID" and "PWD" in the connection options array. $serverName = "serverName\sqlexpress"; //serverName\instanceName $connectionInfo = array( "Database"=>"dbName", "UID"=>"userName", "PWD"=>"password"); $conn = sqlsrv_connect( $serverName, $connectionInfo); if your using sqlsrv_connect you have to download and install MS sql driver for your php!
11th Feb 2019, 5:04 PM
asa22
0
echo("Tq so much bro");
11th Feb 2019, 10:44 PM
Shiv Developer
Shiv Developer - avatar