PHP and SQL Server 2000 - odbc_connect not working and NO ERROR MESSAGE

孤街浪徒 提交于 2019-12-11 03:42:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!