V
V
Vadim Solovyov2016-12-03 14:10:55
Adobe Illustrator
Vadim Solovyov, 2016-12-03 14:10:55

How do pathfinder options -> Hard Mix and Soft Mix effects work?

689f2363d273470a8f7c99b70f040b05.png
In what cases can they be applied?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Uno, 2017-03-31
@lemonlimelike

If you haven't done so, there should be a field in the video table structure that links them to a particular category.
Then we get the categories from the database:

$categories = mysqli_query($connection,"SELECT * FROM `category`");
$categoriesArr = array();
while($cat = mysqli_fetch_assoc($categories)){
//образуйте, например, массив с ними:
$categoriesArr[] = $cat['category']; //не знаю в каком виде они у вас хранятся в таблице
}

What you have already done and are already working with them:
foreach($categoriesArr as $cat){
//для каждой категории делаем запрос в бд
$videos = mysqli_query($connection, "SELECT * FROM `videos` WHERE category = '$cat' ");
//и вывод видео
while($video = mysqli_fetch_assoc($videos)){
...
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question