<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013165" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013165</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/searching-database-multiple-fields#comment-1076444</link>
    <description> &lt;p&gt;PDavis,&lt;/p&gt;
&lt;p&gt;It depends on how you setup your database. The COUNT(*) function works on a row basis, not field. So if you had a table called Person with the fields FirstName &amp;amp; LastName and 20 records containing a first name of &#039;john&#039;, the following statement:&lt;/p&gt;
&lt;p&gt;SELECT COUNT(*) AS Expression, FirstName&lt;br /&gt;
FROM Person&lt;br /&gt;
WHERE (FirstName = &#039;john&#039;)&lt;br /&gt;
GROUP BY FirstName&lt;/p&gt;
&lt;p&gt;Would return:&lt;/p&gt;
&lt;p&gt;20, john&lt;/p&gt;
&lt;p&gt;From the sounds of it you want to search multiple fields within the same row for a particular string, Count won&#039;t work for this. You would have to search for the string, then setup a counter and a loop that counts the number of matches for each field.&lt;/p&gt;
 </description>
     <pubDate>Mon, 08 Jan 2001 14:05:23 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1076444 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/searching-database-multiple-fields#comment-1076382</link>
    <description> &lt;p&gt;link didn&#039;t work for me....&lt;/p&gt;
 </description>
     <pubDate>Sat, 06 Jan 2001 05:01:04 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1076382 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
