help

06/06/2021 10:35 manotskie#1
can u help me with this error ?

Warning: odbc_connect(): SQL error: [Microsoft][SQL Server Native Client 11.0]Neither DSN nor SERVER keyword supplied, SQL state 08001 in SQLConnect in C:\xampp\htdocs\includes\xinc_config.php on line 16

im using xbulbbs website
and i already put the odbc extensioin in php and i already create a config in odbc

this is my line 16
HTML Code:
define('ODBC_USER', 'sa');																	//
	define('ODBC_PASS', 'qwerty');													//
	$odbc_connect = odbc_connect('DRIVER={SQL Server Native Client 11.0};DESKTOP-EUUUP51\SQLEXPRESS', ODBC_USER, ODBC_PASS);
	$_CONFIG['db_databases'] = array(															// Datenbanken
		'acc' => 'ACCOUNT_DBF',
		'chr' => 'CHARACTER_01_DBF',
		'web' => 'WEBSITE_DBF',
		'log' => 'LOGGING_01_DBF',
		//'itm' => 'ITEM_DBF',
	);
anyone pleqase ?

anyone ? please ?
06/08/2021 08:08 Tamus#2
Quote:
Originally Posted by manotskie View Post
can u help me with this error ?

Warning: odbc_connect(): SQL error: [Microsoft][SQL Server Native Client 11.0]Neither DSN nor SERVER keyword supplied, SQL state 08001 in SQLConnect in C:\xampp\htdocs\includes\xinc_config.php on line 16

im using xbulbbs website
and i already put the odbc extensioin in php and i already create a config in odbc

this is my line 16
HTML Code:
define('ODBC_USER', 'sa');																	//
	define('ODBC_PASS', 'qwerty');													//
	$odbc_connect = odbc_connect('DRIVER={SQL Server Native Client 11.0};DESKTOP-EUUUP51\SQLEXPRESS', ODBC_USER, ODBC_PASS);
	$_CONFIG['db_databases'] = array(															// Datenbanken
		'acc' => 'ACCOUNT_DBF',
		'chr' => 'CHARACTER_01_DBF',
		'web' => 'WEBSITE_DBF',
		'log' => 'LOGGING_01_DBF',
		//'itm' => 'ITEM_DBF',
	);
anyone pleqase ?

anyone ? please ?

Here is the fix on your problem Kyah Mark aka Adrix Scott
PHP Code:
    define('ODBC_USER''sa');                                                                    //
    
define('ODBC_PASS''qwerty');                                                    //
    
$odbc_connect odbc_connect('DRIVER={SQL Server};SERVER=DESKTOP-EUUUP51\SQLEXPRESS'ODBC_USERODBC_PASS);
    
$_CONFIG['db_databases'] = array(                                                            // Datenbanken
        
'acc' => 'ACCOUNT_DBF',
        
'chr' => 'CHARACTER_01_DBF',
        
'web' => 'WEBSITE_DBF',
        
'log' => 'LOGGING_01_DBF',
        
//'itm' => 'ITEM_DBF',
    
);