File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
1.0 PHP Configuration and Getting Started
2.0 PHP Server programming - Stored procedures, Transactions, and UDFs Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11<?php
22echo "\n" ;
3- $ serverName = 'tcp:yourserver .database.windows.net,1433 ' ;
3+ $ serverName = 'tcp:your_server .database.windows.net,1433 ' ;
44
55$ connectionOptions = [
6- 'Database ' => 'yourpassword ' ,
7- 'Uid ' => 'yourusername ' ,
8- 'PWD ' => 'yourpassword ' ,
6+ 'Database ' => 'your_database ' ,
7+ 'Uid ' => 'your_username ' ,
8+ 'PWD ' => 'your_password ' ,
99];
1010
1111$ conn = sqlsrv_connect ($ serverName , $ connectionOptions );
Original file line number Diff line number Diff line change 11<?php
2- $ serverName = 'tcp:yourserver .database.windows.net,1433 ' ;
2+ $ serverName = 'tcp:your_server .database.windows.net,1433 ' ;
33$ connectionOptions = [
4- 'Database ' => 'yourdatabase ' ,
5- 'Uid ' => 'yourusername ' ,
6- 'PWD ' => 'yourpassword ' ,
4+ 'Database ' => 'your_database ' ,
5+ 'Uid ' => 'your_username ' ,
6+ 'PWD ' => ' your_password ' ,
77];
88// Establishes the connection
99$ conn = sqlsrv_connect ($ serverName , $ connectionOptions );
You can’t perform that action at this time.
0 commit comments