<?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[Tabella contenente le ultime news]]></title><description><![CDATA[<p dir="auto">Salve gente,</p>
<p dir="auto">vorrei creare una tabella da mettere nella mia HomePage contenente gli ultimi messaggi postati su un Blog.<br />
Un po' come succede per la Home di <a href="http://giorgiotave.it" rel="nofollow ugc">giorgiotave.it</a>.</p>
<p dir="auto">Pensavo a qualcosa con gli RSS, avete idee? <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=3abbd2034aa" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/topic/36315/tabella-contenente-le-ultime-news</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 20:39:38 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/36315.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 May 2007 14:54:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tabella contenente le ultime news on Fri, 25 May 2007 21:22:52 GMT]]></title><description><![CDATA[<pre><code class="language-php">$sql  = 'SELECT post_title, post_date_gmt, display_name'
        . ' FROM wp_posts JOIN wp_users ON wp_posts.post_author = wp_users.ID'
        . ' ORDER BY post_date_gmt DESC'
        . ' LIMIT 0, 30';
</code></pre>
<p dir="auto">Che dite, è meglio?</p>
]]></description><link>https://dev.connect.gt/post/514070</link><guid isPermaLink="true">https://dev.connect.gt/post/514070</guid><dc:creator><![CDATA[grandediplomatico]]></dc:creator><pubDate>Fri, 25 May 2007 21:22:52 GMT</pubDate></item><item><title><![CDATA[Reply to Tabella contenente le ultime news on Fri, 25 May 2007 18:40:51 GMT]]></title><description><![CDATA[<p dir="auto">Che ne dite, può andare?</p>
<pre><code class="language-php">&lt;?php
// connessione
mysql_connect(host,user,password) ;
mysql_select_db(blog_thecyberplanet);

// ottiene i post
$query = mysql_query('SELECT post_title,post_author, post_date_gmt FROM `wp_posts` LIMIT 0, 30');
?&gt;

&lt;table border="1"&gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;Post&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Autore&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;?php
while($row=mysql_fetch_array($query))
{
?&gt;
    &lt;?php
    // ottiene il nome dell'autore
    $query = mysql_query('SELECT display_name FROM `wp_users` WHERE ID='.$row['post_author'].' LIMIT 1');
    $author=mysql_fetch_array();
    ?&gt;
    &lt;tr&gt;&lt;td&gt;&lt;?php echo $row['post_title'] ?&gt;&lt;/td&gt;&lt;td&gt;&lt;?php echo $author['display_name'] ?&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;?php
}
?&gt;

&lt;/table&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/514076</link><guid isPermaLink="true">https://dev.connect.gt/post/514076</guid><dc:creator><![CDATA[grandediplomatico]]></dc:creator><pubDate>Fri, 25 May 2007 18:40:51 GMT</pubDate></item><item><title><![CDATA[Reply to Tabella contenente le ultime news on Thu, 24 May 2007 19:29:48 GMT]]></title><description><![CDATA[<p dir="auto">$sql = 'SELECT post_title , post_date_gmt FROM <code>wp_posts</code> '<br />
. ' LIMIT 0, 30 ';</p>
<p dir="auto">$sql = 'SELECT display_name FROM <code>wp_users</code> LIMIT 0, 30 ';</p>
<p dir="auto">Ecco i due codici php.</p>
]]></description><link>https://dev.connect.gt/post/514074</link><guid isPermaLink="true">https://dev.connect.gt/post/514074</guid><dc:creator><![CDATA[grandediplomatico]]></dc:creator><pubDate>Thu, 24 May 2007 19:29:48 GMT</pubDate></item></channel></rss>