".$msg["alerte_demandes"].$temp_aff."" ; function alerte_demandes () { global $dbh ; global $msg; // comptage des demandes à valider $sql = " SELECT 1 FROM demandes where etat_demande=1 limit 1"; $req = mysql_query($sql) or die ($msg["err_sql"]."
".$sql."
".mysql_error()); $nb_limite = mysql_num_rows($req) ; if (!$nb_limite) return "" ; else return "
  • $msg[alerte_demandes_traiter]
  • " ; }