in reply to Re^4: fetch all data
in thread fetch all data
Don't print anything before the header. Create the list and then print it in the page
pojmy $records = $sth->fetchall_arrayref; my $list = join ' ',map{$_->[0]}@$records; print "Content-type: text/html\n\n"; print <<END_HTML; <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <p>Age list </p> <p>$list</p> </body> </html> END_HTML
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: fetch all data
by bigup401 (Pilgrim) on Mar 17, 2019 at 20:03 UTC | |
by davido (Cardinal) on Mar 18, 2019 at 15:02 UTC | |
by marto (Cardinal) on Mar 18, 2019 at 09:21 UTC |