Subject | Re: [firebird-php] Strange browser error |
---|---|
Author | Sakhile Njoko |
Post date | 2011-07-03T09:44:47Z |
Thanks Umberto but just like my initial script your script works fine but Firefox error console still raises exactly the same error with your script.
--- On Sun, 3/7/11, Umberto Masotti <u.masotti@...> wrote:
From: Umberto Masotti <u.masotti@...>
Subject: Re: [firebird-php] Strange browser error
To: firebird-php@yahoogroups.com
Date: Sunday, 3 July, 2011, 11:32
Hi Sakhile,
On 03/07/2011 09:07, Sakhile Njoko wrote:
> while ($rec=ibase_fetch_object($rsl)) {
> echo $rec->DPTNM."<br />";
> }
I'd say that missing object should be that DPTNM isn't a field for DPMT
table.
Perhaps should you try to check your fields names:
echo "<table><tbody>"
$ii = 0;
while ($rec=ibase_fetch_assoc($rsl)) {
echo "<tr>";
if($ii==0) {
foreach ($rec as $nm => $val) {
echo "<th>$nm</th>";
++$ii;
echo "</tr><tr>"
}
foreach ($rec as $nm => $val)
echo "<td>$val</td>";
echo "</tr>";
}
If field name is printed lowercase or mixed case, you should use proper
case, as $rec->dptnm because object names are case sensitive.
Ciao.
Mimmo.
[Non-text portions of this message have been removed]