mATOK Posted March 12, 2007 Share Posted March 12, 2007 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 More sharing options...
only one Posted March 12, 2007 Share Posted March 12, 2007 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 Link to comment https://forums.phpfreaks.com/topic/42406-mssql_get_last_message/#findComment-205712 Share on other sites More sharing options...
mATOK Posted March 13, 2007 Author Share Posted March 13, 2007 Turned out to be a DNS issue and not one with my script... thanx Link to comment https://forums.phpfreaks.com/topic/42406-mssql_get_last_message/#findComment-206181 Share on other sites More sharing options...
mATOK Posted March 13, 2007 Author Share Posted March 13, 2007 ****SOLVED**** Link to comment https://forums.phpfreaks.com/topic/42406-mssql_get_last_message/#findComment-206182 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.