ERREUR select ec_famille.*,ec_produit.*,ec_sfamille.*,ec_prod_prix_vente as prix,Month(ec_prod_disp) as mois,Day(ec_prod_disp) as jours,year(ec_prod_disp) as annee from ec_famille,ec_sfamille,ec_produit where (ec_sfamille.ec_sfamil_id=ec_produit.ec_sfamil_id OR ec_sfamille.ec_sfamil_id=ec_produit.ec_sfamil_id1 OR ec_sfamille.ec_sfamil_id=ec_produit.ec_sfamil_id2) and ec_famille.ec_famil_id=ec_sfamille.ec_famil_id and ec_famil_active=1 and ec_famille.ec_famil_id= and ec_famil_active=1 and ec_sfamil_active=1 and ec_prod_active=1 order by RAND() : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and ec_famil_active=1 and ec_sfamil_active=1 and ec_prod_active=1 order by RAND' at line 2
ERREUR N :1064