View Single Post

   
  #2 (permalink)  
Old 04-24-2008, 06:08 PM
Sebastian Mendel
 
Posts: n/a
Default Re: Php-mssql connection problems on Windows XP

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
Reply With Quote