I have an sqlite DB that I generate with my script. What would be the best way to do something like this:

1) user logs in and is presented with a table of data extracted from the database for them.
2) user prioritizes this list somehow.
3) priority information saved somewhere - probably added to database.

The database stuff is working. The data changes frequently, so the table will probably just be regenerated instead of updated.

Which modules should I be looking at for the UI part? CGI, or is there something better.

Not sure how to allow the user to prioritize the list... Up and down arrows that they could click? Boxes where they enter a number for sorting purposes? Suggestions welcome!

Thank you for the replies so far! Let me add a few more details...

There will be multiple users having responsibility for different areas. The database rows related to their area are extracted from the database and need to be presented to them. They will then want to reorder the rows to indicate the priority/importance/ordering. The ordering that they impose on these rows is the information I need to capture and convey to the people that will be acting on the tasks represented by the rows.

I will check out the suggestions already made today.

Thanks!


In reply to How to allow a user to reorder rows from a database using a web form? by yaconsult

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.