4 $db = mysql_pconnect("localhost","helm");
5 mysql_select_db("matita");
6 $rc = mysql_query($q,$db);
8 die("Query failed: " . mysql_error());
11 while( $row = mysql_fetch_array($rc, MYSQL_ASSOC)){
14 mysql_free_result($rc);
20 function array_to_combo($l,$a) {
21 echo "<select name=\"$l\">";
22 echo "<option value=\"--\">--</option>";
23 foreach ($a as $k => $v) {
24 foreach( array_keys($v) as $k1 => $i) {
25 echo "<option value=\"{$v[$i]}\">{$v[$i]}</option>";