J
J
jebir2018-03-20 01:19:02
MySQL
jebir, 2018-03-20 01:19:02

How to bulk add a category to unpublished news?

Hello! need help! How to massively add a category to unpublished news in dle 12. Do not add comme il faut with your hands. categories of serials with their genres, there is not enough category of foreign serials
, I found a similar question, the answer is a request

UPDATE `dle_post` SET `category` = IF(`category` = '0', 'cat_id', CONCAT(`category`, IF(`category` != '', ',', ''), 'cat_id'))

I understand that he will add a category to all the news!
Question: How to bulk add a category to unpublished news!
Thank you in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question