mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Make more placeholder strings more readable by using snake case
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
echo "\n";
|
||||
$serverName = 'tcp:yourserver.database.windows.net,1433';
|
||||
$serverName = 'tcp:your_server.database.windows.net,1433';
|
||||
|
||||
$connectionOptions = [
|
||||
'Database' => 'yourpassword',
|
||||
'Uid' => 'yourusername',
|
||||
'PWD' => 'yourpassword',
|
||||
'Database' => 'your_database',
|
||||
'Uid' => 'your_username',
|
||||
'PWD' => 'your_password',
|
||||
];
|
||||
|
||||
$conn = sqlsrv_connect($serverName, $connectionOptions);
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
$serverName = 'tcp:yourserver.database.windows.net,1433';
|
||||
$serverName = 'tcp:your_server.database.windows.net,1433';
|
||||
$connectionOptions = [
|
||||
'Database' => 'yourdatabase',
|
||||
'Uid' => 'yourusername',
|
||||
'PWD' => 'yourpassword',
|
||||
'Database' => 'your_database',
|
||||
'Uid' => 'your_username',
|
||||
'PWD' => ' your_password',
|
||||
];
|
||||
// Establishes the connection
|
||||
$conn = sqlsrv_connect($serverName, $connectionOptions);
|
||||
|
||||
Reference in New Issue
Block a user