<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1029434" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1029434</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172187</link>
    <description> &lt;p&gt;yes i am looking for the current year and thanks again for all your help&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 19:15:42 +0000</pubDate>
 <dc:creator>vibins</dc:creator>
 <guid isPermaLink="false">comment 1172187 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172186</link>
    <description> &lt;p&gt;Are you looking for the current year (ie 2005)? If so, that looks right to me.&lt;/p&gt;
&lt;p&gt;Maybe you should post more of your code.&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 19:04:55 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1172186 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172185</link>
    <description> &lt;p&gt;this is what the year variable should be right&lt;br /&gt;
$year= date(&quot;Y&quot;);&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 18:59:45 +0000</pubDate>
 <dc:creator>vibins</dc:creator>
 <guid isPermaLink="false">comment 1172185 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172183</link>
    <description> &lt;p&gt;o sorry years is not defined sorry for the bother.&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 18:44:27 +0000</pubDate>
 <dc:creator>vibins</dc:creator>
 <guid isPermaLink="false">comment 1172183 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172182</link>
    <description> &lt;p&gt;Yep, that means $year is likely not defined. Try echoing $year right before you assign $result.&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 18:42:48 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1172182 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172179</link>
    <description> &lt;p&gt;i got this&lt;br /&gt;
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;ORDER BY id DESC&#039; at line 1&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 18:24:43 +0000</pubDate>
 <dc:creator>vibins</dc:creator>
 <guid isPermaLink="false">comment 1172179 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172178</link>
    <description> &lt;p&gt;Also, is $year definitely set beforehand? If not, it could cause the problem.&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 18:23:54 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1172178 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172177</link>
    <description> &lt;p&gt;Try changing that first line to this one and see if it gives you a more detailed error message:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$result &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT timestamp, id, title FROM php_blog WHERE FROM_UNIXTIME( timestamp, &#039;%Y&#039; ) = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$year&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; ORDER BY id DESC\&quot;) or die(mysql_error());&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 18:21:00 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1172177 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172175</link>
    <description> &lt;p&gt;no&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 18:06:16 +0000</pubDate>
 <dc:creator>vibins</dc:creator>
 <guid isPermaLink="false">comment 1172175 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/archive-blog-page#comment-1172159</link>
    <description> &lt;p&gt;If you test the query outside of the program, does it return any results?&lt;/p&gt;
 </description>
     <pubDate>Tue, 31 May 2005 12:37:48 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1172159 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
