<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1005888" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1005888</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-can-i-show-new-item-has-been-added#comment-1031410</link>
    <description> &lt;p&gt;Or if you use cookies, you could set one when the person visits that records current date and time.  With a date and time field in your database, you can compare the dates and times of the entries to the date and time of the entry to the date and time of the cookie.  AFAIK, that&#039;s what UBB does for the light images on the side.  There should be samples of code around in various languages to do what you want, especially in Perl.&lt;/p&gt;
 </description>
     <pubDate>Sun, 19 Mar 2000 02:32:00 +0000</pubDate>
 <dc:creator>roBofh</dc:creator>
 <guid isPermaLink="false">comment 1031410 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-can-i-show-new-item-has-been-added#comment-1031409</link>
    <description> &lt;p&gt;Simon,&lt;/p&gt;
&lt;p&gt;You&#039;re a little vague with the details so I can&#039;t be to specific. Probably the best way to do it would be to add a &quot;DATE&quot; column to the table you want listed, and enter the date you added the new record in this new field.&lt;/p&gt;
&lt;p&gt;Then when the page gets called you would do some server-side code like this (ASP/VBScript):&lt;/p&gt;
&lt;p&gt;Dim CurrentDate &#039;Get todays date&lt;br /&gt;
Dim TableDate &#039;Date from table&lt;br /&gt;
Dim DateDifference &#039;Difference between date&lt;/p&gt;
&lt;p&gt;CurrentDate = Date&lt;/p&gt;
&lt;p&gt;&#039;Here is where you would open your DB connection&lt;/p&gt;
&lt;p&gt;SQL = &quot;SELECT (your fields would go here, including the new date field we just added) FROM YourTable&quot;&lt;/p&gt;
&lt;p&gt;Set DateCheck = Conn.Execute(SQL)&lt;/p&gt;
&lt;p&gt;TableDate = DateCheck(&quot;DateFromTable&quot;)&lt;/p&gt;
&lt;p&gt;DateDifference = DateDiff(&quot;h&quot;,CurrentDate,TableDate)&lt;/p&gt;
&lt;p&gt;If DateDifference &amp;lt; 24 Then&lt;br /&gt;
   DisplayImage = True&lt;br /&gt;
Else&lt;br /&gt;
   DisplayImage = False&lt;br /&gt;
End If&lt;/p&gt;
&lt;p&gt;Then wherever you&#039;re displaying the items just do a check for DisplayItem:&lt;/p&gt;
&lt;p&gt;If DisplayItem = True Then&lt;br /&gt;
&amp;lt;img src=newitem.gif&amp;gt;&lt;br /&gt;
End If&lt;/p&gt;
&lt;p&gt;So using this code, any item that is less than 24 hours old would be displayed.&lt;/p&gt;
&lt;p&gt;If you&#039;re doing a loop through records then this statement would have to go inside that loop.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
 </description>
     <pubDate>Sun, 19 Mar 2000 01:32:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1031409 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
