Answer the question
In order to leave comments, you need to log in
How to properly collect php request to display content by id?
There are 2 columns in the database:
site_category and site_news
The site_category contains the categories I created and recorded by type:
The category column contains entries of this type:
name -> Химия
category_id -> 1
------------------------
name - > Физика
category_id -> 2
title -> Заголовок первой новости
category -> 1,2
Answer the question
In order to leave comments, you need to log in
What subd? What is the category column type in site_news?
Your scheme is not normalized, on bare SQL it will not be possible to compose a query normally, most likely.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question