<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'thesecretary.org / Various Functions'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 26 Apr 2026 04:00:32 +0000</lastBuildDate>
    <item>
      <title>microbians said on 17/Aug/2010</title>
      <link>https://snipplr.com/view/39185/thesecretaryorg--various-functions</link>
      <description>&lt;p&gt;**mysql_fetch_alias_array**&#13;
is a function by Mehdi Haresi that get's de mysql entry and format into an array, to handle more like objects&#13;
&#13;
**isTypeOfPage**&#13;
Check if current page is a type of page&#13;
&#13;
**projectsList($template='projects_thumb.html', $whereadd='', $orderby='date DESC LIMIT 6', $sectionname='') **&#13;
This function by default get the projects list of last 6 by date but you can change parameters and paint the projects using the $template. A template is a regular php file, with html extension if you like, that renders the variables this functions get from database. The template file must be inside the theme folder inside a folder named "templates". And example of a template can be "projects_thumb.html" that is like that:&#13;
&#13;
'&lt;code&gt;'&#13;
&#13;
						&lt;li&gt;&#13;
							&#13;
										&#13;
										&#13;
									&#13;
								&#13;
							&lt;/a&gt;&#13;
						&lt;/li&gt;&#13;
'&lt;/code&gt;'&lt;/p&gt;</description>
      <pubDate>Tue, 17 Aug 2010 21:57:01 UTC</pubDate>
      <guid>https://snipplr.com/view/39185/thesecretaryorg--various-functions</guid>
    </item>
  </channel>
</rss>
