Jump to content

how to get article categories in list of articles


jasom

Recommended Posts

Hi guys,

I'm new in PHP. I cannot find tutorial about how to get all categories article is listed in together with article title, author printed on the article list.

 

I have 4 tables in DB:

articles = DB for articles detailse: id, title, user_id, post_date

articles_categories = id, category_id

categories = category_id, category_name

users = user_id, user_name, user_mail

 

I want to do this:

 

N0MRTVD.jpg

 

Which script logic do you suggest? Any kind of help is welcomed.

Edited by jasom
Link to comment
Share on other sites

wait minute how can you join that's table even each table there is no same field to join it, do i wrong this issue?

You can do INNER JOIN but it will results with duplicated rows. Sollution will consist from some kind of PHP hack.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...