php-general | 2000071
Date: 07/06/00
- Next message: MichaelWaples: "Re: [PHP] Re: Utilities?"
- Previous message: Pike: "Re: [PHP] iptcparse() and iptcembed()"
- Next in thread: Andrew Hill: "RE: [PHP] ODBC Connection, 'The connection to the server was reset'"
- Reply: Andrew Hill: "RE: [PHP] ODBC Connection, 'The connection to the server was reset'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: MichaelWaples: "Re: [PHP] Re: Utilities?"
- Previous message: Pike: "Re: [PHP] iptcparse() and iptcembed()"
- Next in thread: Andrew Hill: "RE: [PHP] ODBC Connection, 'The connection to the server was reset'"
- Reply: Andrew Hill: "RE: [PHP] ODBC Connection, 'The connection to the server was reset'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

