ODCB register script for msql 2005 don't want to work

Junior Spellweaver
Joined
Nov 22, 2008
Messages
174
Reaction score
2
Hello,
I have a little prob wehn i try to make an account over website...
I use this in Index.php

/ configuration
$config = array(
'db_username' => 'sa', // database username
'db_password' => 'my pw here..., // database password
'db_dsn' => 'kal_auth', // system DSN to the database
'template' => 'registration.tpl', // registration template path/filename
'debug' => false, // show SQL errors if true
);
and that gives at site

Warning: odbc_connect() [ ]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "kal_auth" requested by the login. The login failed., SQL state 37000 in SQLConnect in C:\xampp\htdocs\index.php on line 113

Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in C:\xampp\htdocs\index.php on line 131

Warning: odbc_errormsg(): supplied argument is not a valid ODBC-Link resource in C:\xampp\htdocs\index.php on line 134

Could somone help me?

Thx :)
 
Fix the first error and you ifx the rest - the login failed, therefore when you tried to execute anything, that also failed.

Make sure the account credentials are right.

-V
 
Upvote 0
hmmm maby caz u need Data Sources (ODBC) ?or did u make them ? and from what i se in ur script is a login password problem,but frist setup ODBC caz im sure u miss that ;)
 
Last edited:
Upvote 0
Back