<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038977" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038977</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/business-directory-using-asp#comment-1221610</link>
    <description> &lt;p&gt;Yeah, that would probably work, but not knowing your structure it&#039;s hard to say.  And why ask us?  Why not try it, debug it, and if you still can&#039;t figure it out THEN ask?  That&#039;s pretty much the point of this site...&lt;/p&gt;
&lt;p&gt;Something you might want to also look at (since I know nothing about your database) is the LIKE attribute.  It&#039;s similar to WHERE except that it allows for variables, so you might do something like...&lt;br /&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;SELECT id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;boat&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;dungeon FROM castle_frankenstein WHERE boat LIKE &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;%$needle%&#039; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ORDER BY id DESC&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
So in that example, it would get the fields &#039;id&#039;, &#039;boat&#039;, and &#039;dungeon&#039; from the table &#039;castle_frankenstein&#039;, and return results that have the contents of the $needle variable inside the &#039;boat&#039; field...  all in descending order based on the id value.&lt;/p&gt;
&lt;p&gt;Also, in your question, you say &quot;WHERE Cat1 = Automotive&quot; ... make sure you&#039;re using quotes after the equal sign.&lt;/p&gt;
 </description>
     <pubDate>Fri, 13 Jul 2007 19:25:48 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1221610 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
