Subject | Re: [firebird-php] Strange browser error |
---|---|
Author | Milan Babuskov |
Post date | 2011-07-05T15:06:18Z |
Sakhile Njoko wrote:
For example:
if (!$tt) exit(ibase_errmsg());
and
if (!$rsl) exit(ibase_errmsg());
I don't see anything in your code that would say "Object required" so
you are obviously not giving us the whole code. Besides, "Object
required" looks like javascript error, so you would need to show us the
javascript code, i.e. what is the HTML output you get.
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================
> 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:Error handling.
>
> 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?
For example:
if (!$tt) exit(ibase_errmsg());
and
if (!$rsl) exit(ibase_errmsg());
I don't see anything in your code that would say "Object required" so
you are obviously not giving us the whole code. Besides, "Object
required" looks like javascript error, so you would need to show us the
javascript code, i.e. what is the HTML output you get.
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================