<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to retrieve latest comments in advacned guestbook 2.3.1"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "How to retrieve latest comments in advacned guestbook 2.3.1"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to retrieve latest comments in advacned guestbook 2.3.1</title>
				<description><![CDATA[ Could someone help me to retrieve the latest comments in the guestbook for my main page.  All I need just to display the latest comments and the date and time and name of the person who write the comment.<br /> <br /> I'm new to this guestbook and also newbie to PHP / WEB.  <br /> <br /> Thank you,<br /> <br /> Ken]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10328.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10328.php</link>
				<pubDate><![CDATA[Thu, 9 Sep 2004 17:44:53]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Ok I hassled Freddy and he threw together the following:<br /> [code]&lt;?PHP<br /> <br /> include&#40;'guestbook/admin/config.inc.php'&#41;;<br /> <br /> mysql_connect&#40;$GB_DB&#91;'host'&#93;,$GB_DB&#91;'user'&#93;,$GB_DB&#91;'pass'&#93;&#41;;<br /> mysql_select_db&#40;$GB_DB&#91;'dbName'&#93;&#41;;<br /> <br /> $numberOfComments = 5;<br /> <br /> $query = &quot;SELECT name,comment,date<br /> 	  FROM &quot;.$GB_TBL&#91;'data'&#93;.&quot;<br /> 	  ORDER BY id DESC<br /> 	  LIMIT 0,$numberOfComments&quot;;<br /> <br /> <br /> $result = mysql_query&#40;$query&#41;;<br /> <br /> $templateFile = 'guestbook/templates/selective.txt';<br /> $templateFP = fopen&#40;$templateFile,'r'&#41;;<br /> $template = fread&#40;$templateFP,filesize&#40;$templateFile&#41;&#41;;<br /> fclose&#40;$templateFP&#41;;<br /> <br /> while&#40;$comment=mysql_fetch_array&#40;$result,MYSQL_ASSOC&#41;&#41; &#123;<br /> 	eval&#40;&quot;\$output .= \&quot;&quot;.$template.&quot;\&quot;;&quot;&#41;;<br /> &#125;<br /> <br /> echo $output;<br /> <br /> ?&gt;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10340.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10340.php</link>
				<pubDate><![CDATA[Sat, 11 Sep 2004 12:09:08]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi There,<br /> <br /> I use your code to put it in my website, bust somehow it didn't display anything to the page.  I want to display the 1 column 5 rows of the latest comments, but somehow display nothing.  Please help me out.<br /> <br /> THank you,<br /> <br /> Nhan]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10456.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10456.php</link>
				<pubDate><![CDATA[Sun, 19 Sep 2004 17:31:21]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Nice one, but what do you add in this file<br /> <br /> guestbook/templates/selective.txt<br /> <br /> As I see the script needs it.<br /> <br /> $templateFile = 'guestbook/templates/selective.txt';]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10468.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10468.php</link>
				<pubDate><![CDATA[Mon, 20 Sep 2004 09:26:51]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Yes I'm trying to get hold of Freddy to see what thats all about.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10471.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10471.php</link>
				<pubDate><![CDATA[Mon, 20 Sep 2004 13:29:12]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Selective text is a template for how you want it to appear. Do not place it between php tags.<br /> <br /> [quote]selective.txt would contain $comment[name] and $comment[comment] in it<br /> where they should be displayed.[/quote]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10475.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10475.php</link>
				<pubDate><![CDATA[Mon, 20 Sep 2004 16:20:39]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Carbonize, <br /> <br /> some how this script don't get the database comments and store in selective.txt.<br /> <br /> thanks]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10478.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10478.php</link>
				<pubDate><![CDATA[Mon, 20 Sep 2004 21:07:50]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ selective.txt is just a template.<br /> <br /> [quote]&lt;table&gt;<br /> &lt;tr&gt;<br /> &lt;td&gt;$comment[name]&lt;/td&gt;<br /> &lt;td&gt;$comment[comment]&lt;/td&gt;<br /> &lt;/tr&gt;<br /> &lt;/table&gt;[/quote]<br /> <br /> Thats an example of what selective.txt should contain.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10480.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10480.php</link>
				<pubDate><![CDATA[Mon, 20 Sep 2004 21:42:40]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Thanks Carbon<br /> <br /> Khang]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10526.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10526.php</link>
				<pubDate><![CDATA[Thu, 23 Sep 2004 00:15:32]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ carbonie,<br /> <br /> when I get the $comment[date] it gives me 1094754924 this...what is it?  How can I get the date of the comment?<br /> <br /> THanks]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10549.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10549.php</link>
				<pubDate><![CDATA[Fri, 24 Sep 2004 01:50:28]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ The date is stored as a unix timestamp. I'll rewrite the script to allow the timestamp to be formatted when I get chance.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10602.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10602.php</link>
				<pubDate><![CDATA[Sat, 25 Sep 2004 10:40:31]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ THanks in advance Carbonie.  I really need to have this done ASAP.<br /> <br /> THanks again,<br /> <br /> Khang]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10684.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10684.php</link>
				<pubDate><![CDATA[Tue, 28 Sep 2004 22:15:29]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Try [code]while&#40;$comment=mysql_fetch_array&#40;$result,MYSQL_ASSOC&#41;&#41; &#123; <br />    $posted = date&#40;&quot;H&#58;m&#58;s&quot;, $comment&#91;date&#93;&#41;;<br />    eval&#40;&quot;\$output .= \&quot;&quot;.$template.&quot;\&quot;;&quot;&#41;; <br /> &#125; [/code]<br /> Then use [b]$posted[/b] in the template instead of [b]$comment[date][/b]. You can learn more about the syntax of the [b]date()[/b] function as well as what the letters represent at www.php.net/date<br /> <br /> It took me a while to reply as I was busy with a paying customer who had messed up his tables.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3583/10687.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3583/10687.php</link>
				<pubDate><![CDATA[Wed, 29 Sep 2004 01:29:58]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
	</channel>
</rss>