Notification

Icon
Error

DbConnection with php

Posted: Thursday, July 8, 2021 4:24:32 PM(UTC)
CED-TQ

CED-TQ

Member Original PosterPosts: 1
0
Like
Is there anyone who has developed a web interface in php to access the database?
I'm trying to log in like this:

$ serverName = "svr.domain \ SQLEXPRESS";
$ connOptions = array ("UID" => "XXX", "PWD" => "XXX", "Database" => "lansweeperdb");
$ conn = sqlsrv_connect ($ serverName, $ connOptions);

but I always get this error:
[HTTP / 1.0 500 Internal Server Error 21ms]

Active Discussions

Lansweeper Exclude non-windows assets from scanning by assetname
by  rapheren   Go to last post Go to first unread
Last post: Today at 1:18:12 PM(UTC)
Lansweeper HTTPS Certifikate untrusted
by  pskup  
Go to last post Go to first unread
Last post: Today at 9:20:07 AM(UTC)
Lansweeper Migrate to new host but without SQL
by  pskup   Go to last post Go to first unread
Last post: Today at 9:03:14 AM(UTC)
Lansweeper Object reference error after updating to 10.2.0.0
by  Erik.T  
Go to last post Go to first unread
Last post: Today at 8:10:25 AM(UTC)
Lansweeper Detect Docking Stations
by  CyberCitizen   Go to last post Go to first unread
Last post: Today at 12:59:42 AM(UTC)
Lansweeper Custom reporting - Asset Groups and AD Description
by  rbshawn  
Go to last post Go to first unread
Last post: Yesterday at 10:54:10 PM(UTC)
Lansweeper A FIX for an odd Scan Error WMI/DCOM from scanning server
by  danielm   Go to last post Go to first unread
Last post: Yesterday at 10:14:44 PM(UTC)
Lansweeper Purging helpdesk tickets older than 5 years
by  SentryP  
Go to last post Go to first unread
Last post: Yesterday at 6:13:37 PM(UTC)