Updated subject to mention this is solved. Also I figured that I had to use first element of @row while it loops through all the rows and use only that element.
So I created a new array @widget and kept adding first element from @row while it iterates over all the rows of result. And finally using elemtnts of this new array.
my @widget; while (my @row = $sth->fetchrow_array) { push(@widget, $row[0]); }
In reply to Re: [Solved]: Can we use print <<HTML; twice in same file?
by Perl300
in thread [Solved]: Can we use print <<HTML; twice in same file?
by Perl300
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |