Forum Moderators: coopster
I'm designing an admin page in order to easily add/change/delete some of my php & mysql driven pages. From the admin page I want to able to add/delete urls using formfields. In order to store it efficently I want to know the best way to store 1-50 urls in a mysql table. The table will contain page_id, page_name, page_title page_meta, etc, and of course page_href_urls
The problem is to how store the 1-50 urls in a suitable way.
anyone with a suggestion?
pages
page_id
page_name
page_title
page_meta
etc.
pages_urls
page_id
page_href_urls
Now you can have 0 - n occurrences of URLs for each page.
meta elements per page as well. pages
page_id
page_name
page_title
etc.
pages_urls
page_id
page_element_type
page_element_type_data
An example of the stored information in the second table might look something like this:
page_id...page_element_type...page_element_type_data
......1................meta...name="keywords" content="keyword1, keyword2"
......1................meta...name="robots" content="follow,index"
......1.................url...http://www.link1.com
......1.................url...http://www.link2.com
......1.................url...http://www.link3.com
read up on some mysql basics
Loke, make that "database basics". I say that because this stuff is pretty much common to all relational databases, so you should not limit yourself to reading mysql-specific materials. You will often find better information on more general database sites when it comes to broad principles like that. I'm sorry I can't think of a resource to send you to right now, but perhaps someone else will.
Good luck,
Tom