I have a table called PROJECT_CATEGORY and it contains two fields
cat_id and cat_title
I am storing the cat_id in another table called PROJECTS so:
project_category.cat_id = projects.cat_id
What is the best way using MySQL to run a query to show the cat_title. In other words I want to display the name not the ID number of the table. Would this work:
SELECT * FROM projects INNER JOIN projects ON project_category.cat_id = projects.cat_id
Then call it:
'.$row['cat_title'].'
Any thoughts?
Thanks,
Ryan