Answer the question
In order to leave comments, you need to log in
How to remove from a table by condition?
Hello.
// получаю id категорий через запятую из таблицы
$connect = $db->query("SELECT * FROM `o_post` WHERE `id` = '$an_id'");
$get = $db->get_row($connect);
// создаю массив, чтобы работать с ним
$categories = explode(',', $get['category']);
Answer the question
In order to leave comments, you need to log in
category table are stored separated by commas
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question