GAH!

I should have seen that to :)

Well now it works, thanks alot for the help!

/Christian

----- Original Message -----
From: "Gerald Richter" <[EMAIL PROTECTED]>
To: "Christian Frantsen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 2:33 PM
Subject: Re: Problem with foreach


> >
> > If i try this...
> >
> > [$ foreach $row @$result $]
> >   [+ $row +]
> > [$ endforech $]
> >
> > ... the only output is a '0', there should be an ARRAY ref there.
> >
>
> I should have seen this after your first mail...
>
> $row is special inside a Embperl page. It's always the row counter and
> because you are not in a table it's always zero. Use another name, e.g.
$rec
> then it will work
>
> Gerald
>
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to