So, if there is a form that allows a user to fill in any number of rows (location, number) for some given surname, and that form contains a "Submit" button, the result of hitting that button could be to save the form contents to a local file on the server (possibly after doing some rudimentary sanity checks on field values), making sure the format of this file is suitbla for use with the "mysqlimport" utility (which does the same thing as doing "load data local infile" within a mysql session); once the file is successfully closed, just run mysqlimport via "system()", and check the results to see if that worked. The next form simply reports the result (success or failure, possibly with details).
Naturally, be mindful of the information in the mysql docs regarding security issues and access control with respect to the use of the "load data infile"/"mysqlimport" mechanism.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.