laxplayin24 Posted June 2, 2006 Share Posted June 2, 2006 I am trying to put in a condition to check and see if the odbc connection was successful but I can't get it to work.[code]$user = '';$pass = '';$conn = odbc_connect('server', $user, $pass );if(!$conn){ die("Connection Failed");}else{ echo "Connection Established";}[/code]But i keep gfetting this error message on the webpageWarning: odbc_connect() [function.odbc-connect]: SQL error: [Viaserv][ODBC Driver]DG23155: Allocate error: TCP/IP socket error, RC=10060, Message=ETIMEDOUT., SQL state HY000 in SQLConnect in c:\Inetpub\wwwroot\test.php on line 4Connection Failed: Thanks for the help Link to comment https://forums.phpfreaks.com/topic/11033-check-odbc-ceonnection/ Share on other sites More sharing options...
laxplayin24 Posted June 6, 2006 Author Share Posted June 6, 2006 Anyone have any ideas why I am getting this error message I still haven't solved the problem. Thanks Link to comment https://forums.phpfreaks.com/topic/11033-check-odbc-ceonnection/#findComment-42415 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.