}
$sql = "SELECT $fields FROM $table AS t $join $where ORDER BY $order";
$res = XDB::iterRow($sql);
- echo $sql;
$sel = ' selected="selected"';
// on ajoute une entree vide si $pad est vrai
if (!is_null($optgrp)) {
$html .= '</optgroup>';
}
- $html .= '<optgroup label="' . addslashes(htmlentities($my_grp)) . '">';
+ $html .= '<optgroup label="' . htmlentities($my_grp, ENT_QUOTES) . '">';
$optgrp = $my_grp;
}
$html .= sprintf("<option value=\"%s\" %s>%s</option>\n",