By adding NOT IN
in a query:
$stmt = $conexion->prepare("SELECT producto,detalle
FROM producto
WHERE activo=? NOT IN ($producto)
order by id_producto ASC limit 10");
$stmt->bind_param("i",$activo);
$activo = "1";
I get the following error:
Fatal error: Call to a member function bind_param () on boolean in C: \ xampp \ htdocs \ ecommerce \ products.php on line 9
The line of the error corresponds to the following line
$stmt->bind_param("i",$activo);