<?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[[Array] Creazione per RSS]]></title><description><![CDATA[<p dir="auto">Ciao a tutti.<br />
Ho scaricato una classe che crea dei feed RSS. Il problema è estrarre i dati dal database (ok) ed inserirli in un'array del tipo:</p>
<blockquote>
<p dir="auto">0=&gt;array(<br />
"title"=&gt;"1 articolo", // This field is mandatory<br />
"description"=&gt;"blablabla", // This field is mandatory<br />
"pubDate"=&gt;"Wed, 02 Oct 2002 13:00:00 GMT",<br />
"link"=&gt;"<a href="http://www.immigrazione.biz/articolo.php?id=1234" rel="nofollow ugc">http://www.immigrazione.biz/articolo.php?id=1234</a>"<br />
),<br />
1=&gt;array(<br />
"title"=&gt;"Exceptions of using XSL stylesheet", // This field is mandatory<br />
"description"=&gt;"When using XSL stylesheet, remember that Mozilla does not parse HTML tags. Though IE6 accepts HTML &lt;b&gt;tags&lt;/b&gt; and parses them, Mozilla does not (and will never do). So using disable-output-escaping="yes" parameter in &lt;xsl:text&gt; and &lt;xsl:value-of&gt; would be effective in MSIE only.", // This field is mandatory<br />
"pubDate"=&gt;"Wed, 02 Oct 2002 13:00:00 GMT", // pubDate MUST BE the unix timestamp<br />
"link"=&gt;"<a href="http://bugzilla.mozilla.org/show_bug.cgi?id=98168" rel="nofollow ugc">http://bugzilla.mozilla.org/show_bug.cgi?id=98168</a>"<br />
)</p>
</blockquote>
<p dir="auto">Qualche guru è disposto ad aiutarmi a creare l'array?<br />
Vi ringrazio in anticipo. <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=3abbd2034aa" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/topic/47235/array-creazione-per-rss</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 06:59:40 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/47235.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Sep 2007 06:02:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Array] Creazione per RSS on Wed, 19 Sep 2007 18:19:43 GMT]]></title><description><![CDATA[<p dir="auto">nessuno mi puoi aiutare??</p>
]]></description><link>https://dev.connect.gt/post/602706</link><guid isPermaLink="true">https://dev.connect.gt/post/602706</guid><dc:creator><![CDATA[stable]]></dc:creator><pubDate>Wed, 19 Sep 2007 18:19:43 GMT</pubDate></item><item><title><![CDATA[Reply to [Array] Creazione per RSS on Tue, 18 Sep 2007 19:20:48 GMT]]></title><description><![CDATA[<p dir="auto">allora intanto ti ringrazio per la risposta ma ci sono degli <strong>errori</strong> causati sicuramente dalla <strong>mia</strong> non chiarezza. Ecco come dovrebbe essere il tutto:</p>
<pre><code>// Query alla tabella 
$query="SELECT * FROM tab";
$risultato=mysql_query($query);


// Estraggo dal database i dati che mi servono e li
// inserisco in un array.
$rss_array = array(
"encoding"=&gt;"UTF-8",
"language"=&gt;"en-us",
"title"=&gt;"Immigrazione.biz", // This field is mandatory
"description"=&gt;"Il portale di riferimento per gli immigrati in Italia", // This field is mandatory
"link"=&gt;"http://www.immigrazione.biz", // This field is mandatory
"items"=&gt;array(

    0=&gt;array(
    "title"=&gt;"1 articolo", // This field is mandatory
        "description"=&gt;"blablabla", // This field is mandatory
        "pubDate"=&gt;"Wed, 02 Oct 2002 13:00:00 GMT",
        "link"=&gt;"http://www.immigrazione.biz/articolo.php?id=1234"
    ),
    1=&gt;array(
        "title"=&gt;"Exceptions of using XSL stylesheet", // This field is mandatory
        "description"=&gt;"When using XSL stylesheet, remember that Mozilla does not parse HTML tags. Though IE6 accepts HTML &lt;b&gt;tags&lt;/b&gt; and parses them, Mozilla does not (and will never do). So using disable-output-escaping=&amp;quot;yes&amp;quot; parameter in &amp;lt;xsl:text&amp;gt; and &amp;lt;xsl:value-of&amp;gt; would be effective in MSIE only.", // This field is mandatory
        "pubDate"=&gt;"Wed, 02 Oct 2002 13:00:00 GMT", // pubDate MUST BE the unix timestamp
        "link"=&gt;"http://bugzilla.mozilla.org/show_bug.cgi?id=98168"
    )
)
);
</code></pre>
]]></description><link>https://dev.connect.gt/post/602705</link><guid isPermaLink="true">https://dev.connect.gt/post/602705</guid><dc:creator><![CDATA[stable]]></dc:creator><pubDate>Tue, 18 Sep 2007 19:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to [Array] Creazione per RSS on Tue, 18 Sep 2007 09:09:08 GMT]]></title><description><![CDATA[<p dir="auto">puoi farne array di array</p>
<pre><code class="language-php">$query=mysql_query('SELECT * FROM ...');
$array_rss = array();
while($news=mysql_fetch_array($query)){
     $array[] = array($news[titolo],$news[descr],...);
}
</code></pre>
]]></description><link>https://dev.connect.gt/post/602704</link><guid isPermaLink="true">https://dev.connect.gt/post/602704</guid><dc:creator><![CDATA[piccolo.socrate]]></dc:creator><pubDate>Tue, 18 Sep 2007 09:09:08 GMT</pubDate></item></channel></rss>