I have a mysql query which doesn't work. It gives me the following error:
mysqli_query() expects parameter 1 to be mysqli, null given
my sql query is:
$select = mysqli_query($sql, "SELECT title FROM category WHERE id LIKE (SELECT categorie_id FROM categories_sub WHERE file LIKE '".$site."')")