Search
 
SCRIPT & CODE EXAMPLE
 

PHP

connexion à la base de donnée microsoftsqlserver avec php


<?php
$serverName = "serverNamesqlexpress"; //serverNameinstanceName

// Vu que UID et PWD ne sont pas spécifiés dans le tableau $connectionInfo,
// la connexion va tenter d'utiliser l'authentification Windows.
$connectionInfo = array( "Database"=>"dbName");
$conn = sqlsrv_connect( $serverName, $connectionInfo);

if( $conn ) {
     echo "Connexion établie.<br />";
}else{
     echo "La connexion n'a pu être établie.<br />";
     die( print_r( sqlsrv_errors(), true));
}
?>

Comment

PREVIOUS NEXT
Code Example
Php :: how to add custom navigation menus in wordpress themes 
Php :: php else 
Php :: coinbase commerce laravel 
Php :: Cannot modify header information - headers already sent by 
Php :: debugbar:clear in laravel 
Php :: php add number to the existing name 
Php :: laravel get route 
Php :: laravel edit method 
Php :: delete laravel error log 
Php :: causes of class not found in laravel 
Php :: remove null values from array php 
Php :: $ whereis php terminal mac 
Php :: generate a unique id 
Php :: onclick on image php 
Php :: png to pdf 
Php :: php sms sending script 
Php :: php barcode generator 
Php :: echo require php 
Php :: iframe site bi link laravel 
Php :: laravel env use other env variables 
Php :: function to find the mod of a number in php 
Php :: send email verification nootification laravel 
Php :: woocommerce_product_query 
Php :: php artisan app:name in laravel 6 
Php :: laravel seeder update 
Php :: php backend generator 
Php :: What’s New in PHP 8 
Php :: laravel property 
Php :: laravel debugbar ServiceProvider to the providers 
Php :: create orphan token in vault 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =