Is there any SQL syntax that allows you to search in many categories, like this:
Category array:
print_r($category) = Array ( [0] => 23 [1] => 24 [2] => 25 [3] => 26 [4] => 27 [5] => 28 [6] => 29 )
Code:
$tab = implode(' OR ', $category);
$sql = "SELECT * FROM files WHERE name LIKE '%$what%' AND category = $tab ORDER BY name DESC LIMIT $from , $how_much";