I have this query for selecting the first 8 rows with a clause.. but if the clause is not valid return me next value of row 9 ,10 etc.. i want to check the first 8 rows and if 2 rows do not validate the clause return the only 6 rows .. this is the query i have:
$sql="SELECT * FROM nazir_items_ishop_category WHERE active = 1 order by id_cat asc limit 8";
It is possible to interrogate and receive an answer only from the first 8 rows ?
SERVER MYSQL VERSION: 5.6.41-cll-lve - MySQL Community Server (GPL) –