Subject | Re: [firebird-php] Strange browser error |
---|---|
Author | Sakhile Njoko |
Post date | 2011-07-04T13:48:57Z |
Apologies to everyone for the delayed response. Something came up that needed my attention.
Thanks, I have removed all '*' from all my selects to be on the safe side. Good advice.
Thanks, I have removed all '*' from all my selects to be on the safe side. Good advice.
--- On Sun, 3/7/11, .Christophe DERENNE <ch.derenne@...> wrote:
From: .Christophe DERENNE <ch.derenne@...>
Subject: Re: [firebird-php] Strange browser error
To: firebird-php@yahoogroups.com
Date: Sunday, 3 July, 2011, 12:25
Hi Sakhile, you should try to protect the "*" charracter like select \* from
insted of select * from
I never user select * : i always specifie which columns I want to retreive.
Rgds
Christophe
2011/7/3 Umberto Masotti <u.masotti@...>
> **
>
>
> 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]
[Non-text portions of this message have been removed]