<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019724" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019724</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-know-whether-todays-date-still-valid-weekly-promotion#comment-1119020</link>
    <description> &lt;p&gt;don&#039;t use PHP... too much coding... throw the extra work at the SQL server...&lt;/p&gt;
&lt;p&gt;SELECT * FROM table_name WHERE TO_DAYS(start_date) &amp;gt;= TO_DAYS(NOW())-7&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;SELECT * FROM table_name WHERE ADDDATE(NOW(), INTERVAL -7 DAY) &amp;gt;= start_date&lt;/p&gt;
&lt;p&gt;I&#039;m assuming that start_date is a date, datetime, or timestamp data type field.&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Nov 2002 07:20:58 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1119020 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-know-whether-todays-date-still-valid-weekly-promotion#comment-1119018</link>
    <description> &lt;p&gt;yes...how to do tat?&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Nov 2002 06:50:29 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1119018 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-know-whether-todays-date-still-valid-weekly-promotion#comment-1119016</link>
    <description> &lt;p&gt;It&#039;s not that hard with PHP, are you using PHP?&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Nov 2002 06:43:25 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1119016 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-know-whether-todays-date-still-valid-weekly-promotion#comment-1119015</link>
    <description> &lt;p&gt;yes..in my database i only store the start date...but how am i going to select out the promotion if the date is still within the 7 days??&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Nov 2002 06:29:48 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1119015 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/how-know-whether-todays-date-still-valid-weekly-promotion#comment-1119012</link>
    <description> &lt;p&gt;I&#039;m a bit lost.  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I&#039;m guessing that you want to select a start date.  Calculate the duration of a promotion (start date + 7 days).  I&#039;m not sure what you want to check for validity.&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Nov 2002 05:25:14 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1119012 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
