On Thu, 18 Oct 2001, Scott Taylor wrote:
> Anyone know how I can do this? I can't seem to get past a syntax error
> near the 'while'. (it worked up to the point I tried to put it into a
> table, and the table works fine by itself)
You have your while loop embedded in a print statement. Can't
On Thu, Oct 18, 2001 at 09:51:31AM -0700, Scott Taylor wrote:
> use CGI qw/:standard *table start_ul/;
> require DBI;
> require HTTP::Date;
> .
>
> print table({-border=>undef},
> caption('Contacts'),
> Tr({-align=>CENTER,-valign=>TOP},
> [
> th(['First Name','Last Name','
On Oct 18, Brian Arnold said:
>$table_data .= td([
>'$columns[0]', '$columns[1]', '$columns[2]', '$columns[3]',
>'$columns[4]', '$columns[5]', '$columns[6]', '$columns[7]',
>'$columns[8]', '$columns[9]', '$columns[10]','$columns[11]',
>'$columns[12]','$columns[13]','$columns[1
I've not had luck calling a while loop (or any loop, for that matter)
during the creation of a table - I did something like this - hope this
helps.
my $table_data = "";
while ( @columns = $cursor->fetchrow ) {
$table_data .= td([
'$columns[0]', '$columns[1]', '$columns[2]', '$columns[3]',