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

Results 1 to 4 of 4
  1. #1
    Elite Member Jurgen1994 is offline
    Member +Rank
    Nov 2008 Join Date
    BelgiumLocation
    195Posts

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

    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() [function.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 :)


  2. #2
    Sorcerer Supreme _Varis_ is offline
    Member +Rank
    May 2008 Join Date
    479Posts

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

    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

  3. #3
    Member HaMiDoZ is offline
    MemberRank
    Jul 2008 Join Date
    33Posts

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

    same error happens with me do u found a solution?

  4. #4
    Banned EvolutionKal is offline
    BannedRank
    Sep 2007 Join Date
    SpaceLocation
    525Posts

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

    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 by EvolutionKal; 04-07-10 at 03:49 AM.



Advertisement