ODBC Connection, 'The connection to the server was reset'
| From: | Allan Lykke | Date: | Thu, 06 Jul 2000 12:48:44 +0000 |
| Subject: | ODBC Connection, 'The connection to the server was reset' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-5203@lists.php.net to get a copy of this message | ||
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