Ok I have it working for one line with this code.
@ln = &make_list; print"<font size=5>Delete Attribute From Database</font>\n"; print"<form method=post action=/cgi-bin/BXJOH27/del_attrib_admin.pl>\n +"; print"<select size=10 name=\"attrib_lines\">\n"; print"<option>$ln[0] $ln[1] $ln[2] $ln[3]</option>\n"; print"</select>\n"; print"</form>\n"; sub make_list { $sql = "select * \n"; $sql .= "from e1_attrib_type \n"; my $cur = ora_open( $lda, $sql ); my @d = ora_fetch( $cur ); ora_close( $cur ); return( @d ); }
But I need the list box to have every line from the database table. How can I modufy this code to make the list box contain every line and not just 1. Thanks

In reply to Re: generating list box form oracle database by new_2_perl
in thread generating list box form oracle database by new_2_perl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.