Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

[PHP] ODBC Connection, 'The connection to the server was reset' From: Allan Lykke (aly <email protected>)
Date: 07/06/00

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>