List:General Discussion« Previous MessageNext Message »
From:Sebastian Mendel Date:April 24 2008 10:16am
Subject:Re: Php-mssql connection problems on Windows XP
View as plain text  
Padiyath Sreekumaran schrieb:
> <?php
> $dsn="asi_qms";
> $username="asi_qms_2006";
> $password="something";
> $server="xxx";
> if(!$handle = odbc_connect($dsn, '$username', '$password')) die('Keine Verbindung
> möglich!');
> ?>
> 
> I got the following error when I execute the previous script:
> 
> Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC SQL
> Server Driver][SQL Server]Login failed for user '$username'., SQL state 28000 in
> SQLConnect in C:\xampplite\htdocs\script.php on line 6
> Keine Verbindung möglich!
> 
> What is Iam missing? Any help is appreciated.
> Please send a copy of the answer in my personal E-mail address also.

$username instead of '$username'
same for '$password'


but what has this to do with MySQL???


-- 
Sebastian Mendel
Thread
Php-mssql connection problems on Windows XPPadiyath Sreekumaran24 Apr
  • Re: Php-mssql connection problems on Windows XPSebastian Mendel24 Apr
  • RE: Php-mssql connection problems on Windows XPJerry Schwartz24 Apr
    • RE: Php-mssql connection problems on Windows XPJerry Schwartz24 Apr
Re: Php-mssql connection problems on Windows XPSebastian Mendel24 Apr