Level 70
Feb 2, 2022
3
Level 1
Uncaught Error: Call to undefined function sqlsrv_connect()
php.ini
extension=php_pdo_sqlsrv_80_ts_x64.dll
extension=php_sqlsrv_80_ts_x64.dll
extension=php_pdo_sqlsrv_74_ts_x64.dll
extension=php_sqlsrv_74_ts_x64.dll
<?php
$serverName = "DESKTOP-N0Q0IVO";
$connectionInfo = array( "Database"=>"rishtay", "UID"=>"sa", "PWD"=>"********");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn ) {
echo "Connection established.<br />";
}else{
echo "Connection could not be established.<br />";
die( print_r( sqlsrv_errors(), true));
?>
still getting the error Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp1\htdocs\rishtay\index.php:13 Stack trace: #0 {main} thrown in C:\xampp1\htdocs\rishtay\index.php on line 13
Please or to participate in this conversation.