Saphire Website SQL Error

11/06/2021 11:40 Wasserkopf123#1
Hi,
regarding this website I get the following error after calling the website:

Code:
PHP Fatal error:  Uncaught TypeError: odbc_result(): Argument #1 ($statement) must be of type resource, bool given in C:\inetpub\wwwroot\website\includes\xinc_config.php:73
Stack trace:
#0 C:\inetpub\wwwroot\website\includes\xinc_config.php(73): odbc_result()
#1 C:\inetpub\wwwroot\website\index.php(4): require_once('...')
#2 {main}
  thrown in C:\inetpub\wwwroot\website\includes\xinc_config.php on line 73
Line 73:
Code:
    $_CONFIG['allg_user_online'] =     [MENTION=311501]ODB[/MENTION]c_result [MENTION=311501]ODB[/MENTION]c_exec($odbc_connect, 'SELECT     COUNT([MultiServer]) as OnlineCount FROM [' . $_CONFIG['db_databases']['chr'] . '].[dbo].[CHARACTER_TBL] WHERE [MultiServer] > 0'), 'OnlineCount');
I mean, obviously the type of argument it's expecting doesn't match, but dunno how to fix it.
Do you know what's the issue here is?
11/08/2021 22:01 ryandif#2
bro look line xinc config

exemple :





has the line:

define('ODBC_USER', 'sa'); // Default user for all.
define('ODBC_PASS', 'YOURPASSWORD'); // the password you have chosen to install sql server
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=DESKTOP-V3Q8QOF\SQLEXPRESS', ODBC_USER, ODBC_PASS); ------------- > YOUR PROBLEM ;) you have "SERVER=" before DESKTOP-XX\SQLEXPRESS? Maybe you deleted it by mistake?

You’ve got the wrong setup
SERVER=YOURNAME\SQLEXPRESS