I am running PHP 4.1.1 on RH Linux 7.2 with Apache and I am getting an
error as soon as I try to execute the query.  The browser error with
Netscape is "Document contains no data.  Try again later..."

  echo('Opening Interbase<br>');
  $dbh = db_open($host,$user,$password);
  if ($dbh) {

    $stmnt = 'SELECT COUNT(*) FROM PHOTOS';
    $sthdl = ibase_query($stmnt,$dbh);
    if ($sthdl) {
      echo('Query succeeded<br>');
    } else {
      echo('Cannot perform query<br>');
    }

    echo('Closing Interbase<br>');
    ibase_close($dbh);
  } else {
    echo('Could not open Interbase!<br>');
  }

If I comment out

    $stmnt = 'SELECT COUNT(*) FROM PHOTOS';

All run fine.  Also, this piece of code use to work.  Any suggestions?

Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to