[PHP] IIS4.0, PHP4, WinNT4 sp6a From: Adrain Sweeney (adrian <email protected>)
Date: 08/01/00

Hi guys i'm running php4 on NT using DLL's and I want to open a database
connection to an ODBC database

so I write some things along the lines of
<code>
  $connect = odbc_connect('dbconn' ,'sa', '');
  if(!$connect) {
     echo ("Not Connected!");
   } else {
     echo ("Connected! $connect");
   }
</code>
This is fine and prints
<display>
Connected! Resource id #1
</display>
now if I try and run a sql statement on it
ie
<code>
  $connect = odbc_connect('dbconn' ,'sa', '');
  if(!$connect) {
     echo ("Not Connected!");
   } else {
     echo ("Connected! $connect");
     $x = odbc_exec($connect, "select * from table1;");
  }
</code>
it stops my web server. doesn't freeze it actually stops it for some reason.

Adrain Sweeney

-- 
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>