Ok, this is a combination of a Perl question, and Database question.
I just want to know what YOU would do...
I'm making in my wifes admin interface a way for her to edit her meta tag keywords AND description.
Should I put it like this:
-------------------------------------------
| meta_table_page_info |
-------------------------------------------
| id | page | keywords | desc |
-------------------------------------------
Should I put all the keywords in the ONE column, OR
should I create a new record for EVERY keyword, and
add a column named "seperator" where she can tell it how to be seperated and it would just do something like:
while($trow = $sth->....
$keywords .= $trow->{keywords} . $trow->{seperator};
}
Then it would be harder to have a description, in there, because there would be multiple records for that ONE page, so, I would have to create ANOTHER table to hold the description.
I am using Perl, so I have CGI.pm use the start_html(-meta=>{'keywords'=>$keywords});
Anyways, What would YOU do?
Thanks,
Richard
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.