Posted by Chris Hope on 07/25/07 21:05
Sanders Kaufman wrote:
> No - this isn't a morality question. :)
>
> When I run this:
> foreach ($this->RecordSet[0] as $x=>$y){
> echo "<br>$x = $y";
> }
>
> I get this:
> username = alpha
> password = omega
>
> But when I run this:
> echo $this->Recordset[0]["username"]
> echo $this->Recordset[0]["password"]
>
> I don't get squat.
>
>
> I know it's something symple with the sintax - but I just ain't seeing
> it.
>
> What am I doing wrong?!
Case sensitivity.
$this->RecordSet[0]
is not the same as
$this->Recordset[0]
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
[Back to original message]
|