问题
I tried re-run the earlier working code to connect SQL Server 2000 from PHP. I used the following code to connect:
$connection = odbc_connect($databaseURL, $databaseUName, $databasePWord);
if (!$connection) {
echo 'dyeing';
die('Something went wrong while connecting to database ' + $databaseName);
}
else
{
echo "connection successful";
}
But no code, after $connection = odbc_connect($databaseURL, $databaseUName, $databasePWord);
is working. Not even echo statements.
What will be wrong in the setup. I formated and re-installed windows, php and sql server et all. Earlier the same code working fine.
Now no message appears after the line odbc_connect statement. Till that line, every echo statement is working fine.
Couldn't figure out what went wrong.
Happiness Always BKR Shivaprakkash
来源:https://stackoverflow.com/questions/10664330/php-and-sql-server-2000-odbc-connect-not-working-and-no-error-message