PHP code example of wattanar / sqlsrv
1. Go to this page and download the library: Download wattanar/sqlsrv library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wattanar / sqlsrv example snippets
use Wattanar\Sqlsrv;
$connection = Sqlsrv::connect($server, $username, $password, $database)
$rows = Sqlsrv::rows($connection, $query, array $params = null)
$hasRows = Sqlsrv::hasRows($connection, $query, array $params = null)
$query = Sqlsrv::query($connection, $query, array $params = null)