Re: Simple table problem

2003-12-03 Thread Gerald Richter
> > This can be done with $maxcol and $cnt, I have not tested but try > this: > This works with 1.3... > > [- > @array = qw/1 2 3 4 5 6 7 8 9 10/; > $maxcol = 4; > -] > > > [+ $array[$cnt] +] > > 2.0 doesn't support $cnt yet, here write instead the following to get the same res

Re: Simple table problem

2003-12-03 Thread Luiz Fernando B. Ribeiro
On 03 Dec 2003 17:15:57 +1100, Pete Moran <[EMAIL PROTECTED]> wrote: I know this is a really simple problem - and can be fixed using if statements etc - but wanted to know if there was a standard way of doing this. Simply say I have a array @array = qw/1 2 3 4 5 6 7 8 9 10/; And I want to create

Simple table problem

2003-12-02 Thread Pete Moran
I know this is a really simple problem - and can be fixed using if statements etc - but wanted to know if there was a standard way of doing this. Simply say I have a array @array = qw/1 2 3 4 5 6 7 8 9 10/; And I want to create a dynamic table of this data - BUT I want to have a fixed column len

Re: table problem

2001-07-08 Thread Gerald Richter
Hi, >an this works not, special the tags are not in the html output. > > >[$ while ( ((++$cnt)< 5) && (@data = $sth->fetchrow_array()) ) $] $cnt has a special meaning inside a table (see http://perl.apache.org/embperl/Embperl.pod.6.html#_cnt ) use another name, for example $count and it should

Re: table problem

2001-07-02 Thread Ian Van Der Poel
Torsten, I have copied your code exactly on my setup and it works. Could you send some details of your configuration. Regards IAN >>> <[EMAIL PROTECTED]> 07/03 8:31 am >>> Hi, why this works: [$ while ( @data = $sth->fetchrow_array() ) $] [+ $dat

table problem

2001-07-02 Thread hoppe
Hi, why this works: [$ while ( @data = $sth->fetchrow_array() ) $] [+ $data[0] +] [+ $data[1] +] [+ $data[2] +] [$ endwhile $] an this works not, special the tags are not in