$sql = "SELECT * FROM liasse_a where n_doss='".mysql_real_escape_string($_GET['n_doss'])."' AND where date_action < date('Y-m-d') ";
en sachant que le champ date_action est au format DATE et non varchar. Du coup je ne sais pasmais j'ai cette erreur:
Code : Tout sélectionner
245You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where date_action < date('Y-m-d')' at line 1SELECT * FROM liasse_a where n_doss='110015666223' AND where date_action < date('Y-m-d')