credo di aver capito che è un problema di array ma... dove sbaglio?
if (isset($id))
{
$sql = "select name, create_by, description, start_time, end_time,
type, room_id, entry_type, repeat_id, lavf, lavf, lavl, proie, ampli, aconf, vconf, presi, puli from $tbl_entry where id=$id";
$res = sql_query($sql);
if (! $res) fatal_error(1, sql_error());
if (sql_count($res) != 1) fatal_error(1, get_vocab("entryid") . $id . get_vocab("not_found"));
$row = sql_row($res, 0);
sql_free($res);
Note: Removed stripslashes() calls from name and description. Previous
versions of MRBS mistakenly had the backslash-escapes in the actual database
records because of an extra addslashes going on. Fix your database and
leave this code alone, please.
$name = $row[0];
$create_by = $row[1];
$description = $row[2];
$start_day = strftime('%d', $row[3]);
$start_month = strftime('%m', $row[3]);
$start_year = strftime('%Y', $row[3]);
$start_hour = strftime('%H', $row[3]);
$start_min = strftime('%M', $row[3]);
$duration = $row[4] - $row[3] - cross_dst($row[3], $row[4]);
$type = $row[5];
$room_id = $row[6];
$entry_type = $row[7];
$rep_id = $row[8];
$lavf = $row[9];
$lavl = $row[10];
$ampli = $row[11];
$proie = $row[12];
$aconf = $row[13];
$vconf = $row[14];
$presi = $row[15];
$puli = $row[16];
if($entry_type >= 1)
a me pare di aver assegnato i numeri in modo sequenziale...