<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Page comments</title>
		<link>http://www.ssbits.com/home/</link>
		<atom:link href="http://www.ssbits.com/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_1841</link>
			<description>i have tried to follow this code( the random rotating banner) for some weeks now but still cant have my images/banner rotating on my homepage. can some one help pliz!</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_1841</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_890</link>
			<description>Peter, it must be located in the assets folder.</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_890</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_848</link>
			<description>Forgive the stupid question - I'm about 1.5 days into SS - where should the BannerImages folder be located?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_848</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_162</link>
			<description>Fellas, I was having the same problem, as well, which brought me to this post. What helped me was to swap around single and double quotes in the query.

So change this:

'ClassName &lt;&gt;
&quot;Folder&quot; AND ParentID = (SELECT ID FROM File WHERE ClassName = &quot;Folder&quot;
AND Name = &quot;BannerImages&quot;)'

to this:

&quot;ClassName &lt;&gt;
'Folder' AND ParentID = (SELECT ID FROM File WHERE ClassName = 'Folder'
AND Name = 'BannerImages')&quot;</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_162</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_146</link>
			<description>Hi there

I'm experiencing the exact same problem. I have used this code many times in other sites with no problems, however this is the first time I've used it in SS 2.4.2. Perhaps that has something to do with it?

Has anyone used this in 2.4.2 with success?

Many thanks,

Jayne</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_146</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_111</link>
			<description>Johan,

I'm guessing that the &quot;Headers&quot; folder does exist and is in the root of your assets folder and is full of images ?

I am guessing that this function is looking for them there - so apologies if this isn't the answer you are looking for ;)

Regards,

m</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_111</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_82</link>
			<description>I placed the first function in &quot;mysite/code/page.php&quot; and when i visit the page i get the following error:

[User Error] Couldn't run query: SELECT &quot;File&quot;.&quot;ClassName&quot;, &quot;File&quot;.&quot;Created&quot;, &quot;File&quot;.&quot;LastEdited&quot;, &quot;File&quot;.&quot;Name&quot;, &quot;File&quot;.&quot;Title&quot;, &quot;File&quot;.&quot;Filename&quot;, &quot;File&quot;.&quot;Content&quot;, &quot;File&quot;.&quot;Sort&quot;, &quot;File&quot;.&quot;SortOrder&quot;, &quot;File&quot;.&quot;ParentID&quot;, &quot;File&quot;.&quot;OwnerID&quot;, &quot;File&quot;.&quot;ID&quot;, CASE WHEN &quot;File&quot;.&quot;ClassName&quot; IS NOT NULL THEN &quot;File&quot;.&quot;ClassName&quot; ELSE 'File' END AS &quot;RecordClassName&quot; FROM &quot;File&quot; WHERE (&quot;File&quot;.&quot;ClassName&quot; IN ('Image','Image_Cached')) AND (ClassName &quot;Folder&quot; AND ParentID = SELECT ID FROM File WHERE ClassName = &quot;Folder&quot; AND Name = &quot;Headers&quot;)) ORDER BY RAND() LIMIT 5 Unknown column 'Folder' in 'where clause'

Could you please help me?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/tutorials/2009/working-with-banners/#PageComment_82</guid>
		</item>
		

	</channel>
</rss>