<?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[Undefined index]]></title><description><![CDATA[<p dir="auto">Salve, non riesco a venire a capo di un errore <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">Questo è l'errore -&gt; Notice: Undefined index: 2  in D:\inetpub\webs\davanzati_test\models\booking_model.php on line 40</p>
<pre><code class="language-php">$this-&gt;selected = $_SESSION['ava'][$_POST['t']];
</code></pre>
<p dir="auto">Questo il codice, mentre invece se faccio var_dump() di $_SESSION['ava'] ecco cosa appare:</p>
<pre><code class="language-php">array(1) {  [2]=&gt;  array(3) {    ["tipo"]=&gt;    string(1) "2"    ["prezzo"]=&gt;    string(3) "188"    ["stanze"]=&gt;    array(2) {      [0]=&gt;      string(3) "301"      [1]=&gt;      string(3) "306"    }  } }
</code></pre>
<p dir="auto">Potete aiutarmi?</p>
]]></description><link>https://dev.connect.gt/topic/193924/undefined-index</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 16:11:30 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/193924.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Sep 2013 09:22:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Undefined index on Tue, 24 Sep 2013 09:42:47 GMT]]></title><description><![CDATA[<p dir="auto">Può essere un problema di sessione, poiché con quell'errore ti sta dicendo che per l'array $_SESSION['ava'] non è definito l'indice 2.<br />
Ci puoi dare più dettagli?</p>
]]></description><link>https://dev.connect.gt/post/1137944</link><guid isPermaLink="true">https://dev.connect.gt/post/1137944</guid><dc:creator><![CDATA[icefoxsoftware]]></dc:creator><pubDate>Tue, 24 Sep 2013 09:42:47 GMT</pubDate></item><item><title><![CDATA[Reply to Undefined index on Sun, 22 Sep 2013 10:30:46 GMT]]></title><description><![CDATA[<p dir="auto">Ciao,<br />
ma $_POST['t'] è pari a 2?</p>
<p dir="auto">Dovresti postare:</p>
<pre><code class="language-php">var_dump($_POST['t']);
print_r($_SESSION['ava']);
</code></pre>
<p dir="auto">Cosi si capisce meglio e si vede subito il problema, anche se a me il problema non sembra sulla singola riga, ma bisognerebbe vedere il funzionamento generale, perchè mi sembra uno dei classici problemi di sessione.</p>
]]></description><link>https://dev.connect.gt/post/1137943</link><guid isPermaLink="true">https://dev.connect.gt/post/1137943</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Sun, 22 Sep 2013 10:30:46 GMT</pubDate></item></channel></rss>