Subject Re: [firebird-php] Strange browser error
Author Sakhile Njoko
Sorry,
 
 $rsl=ibase_query($qry);

should read
 
 $rsl=ibase_query($tt,$qry);

Looking forward to possible answers to my question.

--- On Sun, 3/7/11, Sakhile Njoko <sakhinjoko@...> wrote:


From: Sakhile Njoko <sakhinjoko@...>
Subject: [firebird-php] Strange browser error
To: firebird-php@yahoogroups.com
Date: Sunday, 3 July, 2011, 10:07


 



I am using PHP and Apache 2.2 on win7 Pro and using browsers IE8 and Firefox 5.0. I keep getting the error "Object required" and when I use the Firfox error console it says there is a syntax error. I have even created a simple script (in trying to locate the source of the problem), which executes successfully but the error console still says there is a syntax error. Following is the simple script:
 
filename: test.php
<?php
 $db="localhost:C:\Program Files\Apache Software Foundation\Apache2.2\dbs\TEST.FDB";
 $user="admin";
 $pswd="apass";
 $tt=ibase_connect($db,$user,$pswd);
 $qry="select * from DPMT";
 $rsl=ibase_query($qry);
 while ($rec=ibase_fetch_object($rsl)) {
  echo $rec->DPTNM."<br />";
 }
?>
 
What am I missing?

[Non-text portions of this message have been removed]








[Non-text portions of this message have been removed]