<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[problema inserimento array]]></title><description><![CDATA[<p dir="auto">ciao a tutti<br />
premesso che sono un pò zappone e alle prime armi....<br />
ho cercato nel forum ma non mi pare di aver trovato nulla.<br />
Ho un problema con un insert e credo di aver capito che si tratta di non indirizzare il primo nè l'ultimo nodo dell'array, ma lo script per me è troppo complesso e non riesco a trovare il punto esatto da correggere.<br />
In pratica se inserisco 8 valori su 8 campi me li inserisce sfalsati ossia il primo no gli altri 7 si ma partendo dal primo campo lasciando vuoto l'ultimo.<br />
Lo script è lungo e allego il file zip delle pagine<br />
chi mi aiuta?<br />
grazie a tutti</p>
]]></description><link>https://dev.connect.gt/topic/66525/problema-inserimento-array</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 07:42:09 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/66525.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Mar 2008 20:06:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problema inserimento array on Mon, 24 Mar 2008 17:49:47 GMT]]></title><description><![CDATA[<p dir="auto">credo di aver capito che è un problema di array ma... dove sbaglio?<br />
if (isset($id))<br />
{<br />
$sql = "select name, create_by, description, start_time, end_time,<br />
type, room_id, entry_type, repeat_id, lavf, lavf, lavl, proie, ampli, aconf, vconf, presi, puli from $tbl_entry where id=$id";</p>
<p dir="auto">$res = sql_query($sql);<br />
if (! $res) fatal_error(1, sql_error());<br />
if (sql_count($res) != 1) fatal_error(1, get_vocab("entryid") . $id . get_vocab("not_found"));</p>
<p dir="auto">$row = sql_row($res, 0);<br />
sql_free($res);</p>
<h1>Note: Removed stripslashes() calls from name and description. Previous</h1>
<h1>versions of MRBS mistakenly had the backslash-escapes in the actual database</h1>
<h1>records because of an extra addslashes going on. Fix your database and</h1>
<h1>leave this code alone, please.</h1>
<p dir="auto">$name        = $row[0];<br />
$create_by   = $row[1];<br />
$description = $row[2];<br />
$start_day   = strftime('%d', $row[3]);<br />
$start_month = strftime('%m', $row[3]);<br />
$start_year  = strftime('%Y', $row[3]);<br />
$start_hour  = strftime('%H', $row[3]);<br />
$start_min   = strftime('%M', $row[3]);<br />
$duration    = $row[4] - $row[3] - cross_dst($row[3], $row[4]);<br />
$type        = $row[5];<br />
$room_id     = $row[6];<br />
$entry_type  = $row[7];<br />
$rep_id      = $row[8];<br />
$lavf        = $row[9];<br />
$lavl      = $row[10];<br />
$ampli       = $row[11];<br />
$proie       = $row[12];<br />
$aconf       = $row[13];<br />
$vconf       = $row[14];<br />
$presi       = $row[15];<br />
$puli        = $row[16];<br />
if($entry_type &gt;= 1)</p>
<p dir="auto">a me pare di aver assegnato i numeri in modo sequenziale...</p>
]]></description><link>https://dev.connect.gt/post/695745</link><guid isPermaLink="true">https://dev.connect.gt/post/695745</guid><dc:creator><![CDATA[linno]]></dc:creator><pubDate>Mon, 24 Mar 2008 17:49:47 GMT</pubDate></item></channel></rss>