RE: [PHP] ODBC Connection, 'The connection to the server was reset'
| From: | Andrew Hill | Date: | Thu, 06 Jul 2000 13:41:32 +0000 |
| Subject: | RE: [PHP] ODBC Connection, 'The connection to the server was reset' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5211@lists.php.net to get a copy of this message | ||
Allan,
Try pulling a trace (tracing tab, ODBC Administrator) of the Microsoft
driver to see what is happening. I assume you are using a Microsoft driver
since you are all on Win2k. If not, there are other debug and diagnostic
things we can do.
Hope this helps!
Best regards,
Andrew
----------------------------------------------------
Andrew Hill
Professional Services Consultant
OpenLink Software
http://www.openlinksw.com
Universal Database Connectivity Technology Providers
-----Original Message-----
From: Allan Lykke [mailto:aly@netguide.dk]
Sent: Thursday, July 06, 2000 8:49 AM
To: php-general@lists.php.net
Subject: [PHP] ODBC Connection, 'The connection to the server was reset'
I'm a newbie to PHP (running it on a Windows 2000 Professional workstation)
and trying to connect a html page to a Microsoft SQL Server database thru
ODBC.
The code I user is:
---
$myDB = odbc_connect('dbNews','webuser','webuser');
$query = "SELECT * FROM tNews";
$result = odbc_exec($myDB, $query);
$report = odbc_fetch_row($result);
odbc_close($myDB);
----
if I only have the first line there is no errors, but as soon as I start to:
odbc_exec, odbc_execute or odb_prepare a window pops up in my browser
(MSIE5) saying: 'Internet Explorer cannot open the Internet site
http://blabla. The connection with the server was reset.'
Hope someone can help?!
Kind Regards,
Allan Lykke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net