Jump to content

mssql_get_last_message()


mATOK

Recommended Posts

Hey there, I have the following code

 

@$cs = mssql_connect ( 'server\server', 'User', 'timbuktu' ) or die ("Could not connect to database: ".mssql_get_last_message());
@mssql_select_db('db',$cs);

 

Which produces only 'Could not connect to database: '.

 

This was working until this morning when my web server was virtualized. I am wondering if there is a way other that mssql_get_last_message() to get some errors as I have no idea what I am doing wrong and the server folk arent much help either.

 

Win2k3 server, Apache/1.3.29 PHP/4.3.4 - All the same as yesterday

Link to comment
https://forums.phpfreaks.com/topic/42406-mssql_get_last_message/
Share on other sites

your silly @ symbols block any errors on that line...

 

$cs = mssql_connect ( 'server\server', 'User', 'timbuktu' ) or die ("Could not connect to database: ".mssql_get_last_message());

mssql_select_db('db',$cs);

 

take me out.. now youll get your error

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.