Hello.
I am just wondering if someone can help me with my PHP/MySql code as I
am not too proficient with it yet.
What I am wanting to do, is display data from two tables.
The first table is called wp_linkcategories and has a list of category
names for my different links.
The second table is called wp_links and is where the actual links are
stored.
I would like to have the category name displayed from the first table
and then all the links that fall in that category listed underneath
from the second table, and then the next category link displayed and
its links until all the category names and links have been displayed.
I believe I need to do an inner join between the two tables and have a
repeatable region until all the data is displayed?
The only items in the two tables that are the same are cat_id of table
wp_linkcategories, and the link_category of table wp_links.
So in table wp_linkcategories I have cat_id and cat_name which I would
need.
In table wp_links I have link_category, link_name, link_url and
link_rating.
I would like the cat_name from table wp_linkcategories listed by
cat_id descending.
Following that I would like to have the link_name from table wp_links
along with the url to make it a hyper link listed by link_rating
descending.
Any ideas how to go about this? I am a bit befuddled on where to
start as I've not done anything this complicated with PHP before.
John