<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Guestbook show 50 caracters of 5 latest entrys on other page"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Guestbook show 50 caracters of 5 latest entrys on other page"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Guestbook show 50 caracters of 5 latest entrys on other page</title>
				<description><![CDATA[ My guestbook is running on <a class="snap_shots" href="http://www.oirschotdebeerzen.nl/prikbord/." target="_blank" rel="nofollow">http://www.oirschotdebeerzen.nl/prikbord/.</a> Thank you for the script. It is the best guestbook i have ver seen.<br /> <br /> Can anyone tell me how i can show +-50 caracters of the field "Your Message*: " of the 5 latest entrys on my indexpage www.oirschotdebeerzen.nl/index.php.<br /> <br /> Or is it possible to make an extra field ''subject" and show this field of the 5 latest entrys on my indexpage.(i do not use the field ICQ and AIM<br /> <br /> <br /> For example: of this message i want to show the text "My guestbook is running on <a class="snap_shots" href="http://www.oirschotdebeerzen.nl" target="_blank" rel="nofollow">http://www.oirschotdebeerzen.nl</a>" on the page www.oirschotdebeerzen.nl/index.php.<br /> <br /> Someone else managed this for me with another PHP script with the next code on the page www.oirschotdebeerzen.nl/index.php:<br /> <br /> &lt;?<br /> /***********************************************************<br /> / Alles tussen &lt;? en vraagteken&gt; hoort bij voorbereiden van<br /> / het opvragen van agendapunten uit de database.<br /> /**********************************************************/<br /> <br /> include "/www/oirschotdebeerzen/admin/.database.php";<br /> <br /> /***********************************************************<br /> / functions<br /> /**********************************************************/<br /> <br /> function connect($hostname,$username,$password,$databasename) {<br />   $returnval = true;<br />   if (!$returnval=mysql_pconnect($hostname,$username,$password))<br />       $returnval = false;<br />   else<br />     if (!mysql_select_db($databasename,$returnval))<br />       $returnval = false;<br />   return $returnval;<br /> }<br /> <br /> /***********************************************************<br /> / Connecten<br /> /**********************************************************/<br /> <br /> if (!connect($hostname,$username,$password,$databasename)) {<br />   echo "connecten met database is mislukt";<br /> }<br /> <br /> ?&gt;<br /> <br /> <br /> <br /> $query = "select date_format(ag_datum, '%d-%m') as datum, ag_activiteit as activiteit FROM agenda WHERE ag_datum &gt;= curdate() ORDER by ag_datum LIMIT 4";<br />   if (!$result = mysql_query($query)) echo "$query is mislukt";<br /> /***********************************************************<br /> / Checken hoe lang activiteit tekst is en tabel schrijven<br /> /**********************************************************/<br /> 	while ($resultaat = mysql_fetch_array($result)) {<br /> 			if (strlen($resultaat[activiteit]) &gt; 50) $resultaat[activiteit]=substr($resultaat[activiteit],0,50);<br /> 				echo "<br />                 &lt;tr&gt;<br />                   &lt;td&gt;&lt;FONT FACE='ARIAL' SIZE='2' COLOR='153D51'&gt;$resultaat[datum]&lt;/font&gt;&lt;/td&gt;<br />                   &lt;td width='90%'&gt;&lt;FONT FACE='ARIAL' SIZE='2' COLOR='153D51'&gt;$resultaat[activiteit]&lt;/font&gt;&lt;/td&gt;<br />                 &lt;/tr&gt;";<br /> 				}<br /> ?&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1390/3444.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1390/3444.php</link>
				<pubDate><![CDATA[Thu, 2 Jan 2003 23:17:11]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>