connexion à la base de donnée microsoftsqlserver avec php
<?php
$serverName = "serverName\\sqlexpress"; //serverName\instanceName
// 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));
}
?>
Also in PHP:
- convert timestamp to date time in php
- contains php
- check strpos in php
- base64decode in image php
- afficher type et contenu d'une variable php
- Capital letters php
- Delete Query with Where Condition in Codeigniter
- add php var to js console log
- create a class in php
- error_reporting e_all
- checking php version
- A random character from a string of characters:
- error reportin gall in php
- Jan 5, 2021 15:37:25 time format php
- add shortcode in short description
- error reporting php
- date( w ) php
- email send using queue with attachment laravel
- beforeHeader settings
- Allowed memory size of 134217728 bytes exhausted setup di compile
- combox with auto filter, auto search cakephp
- create new laravel project 8
- compress video file size php
- How to get the current time in PHP