<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>mysql_count</title>
        <link>https://interactivetools.com/forum/forum-posts.php?mysql_count-81370</link>
        <description></description>
        <pubDate>Fri, 06 Mar 2026 12:42:41 -0800</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;mysql_count-81370" rel="self" type="application/rss+xml" />

                <item>
          <title>mysql_count</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242276#post2242276</link>
          <description><![CDATA[<p>thank you Leo , it works great </p>]]></description>
          <pubDate>Thu, 05 Jul 2018 11:00:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242276#post2242276</guid>
        </item>
                <item>
          <title>mysql_count</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242275#post2242275</link>
          <description><![CDATA[<p>Hi,</p>
<p>Here is an example of mysql_count usage:</p>
<p><code>mysql_count('products', 'type = "' . $type . '"');</code></p>
<p>Let me know if you have any questions!</p>
<p>Thanks,</p>]]></description>
          <pubDate>Thu, 05 Jul 2018 09:57:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242275#post2242275</guid>
        </item>
                <item>
          <title>mysql_count</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242274#post2242274</link>
          <description><![CDATA[<p>Hi everyone,<br /><br />I would like to use the mysql_count in order to appear different section depend of the number of the records per type,<br />I have created table named "products" and i use list "type" in order to filtering them.<br />if the sum of the records which filtered by type is 1 or more than 1.</p>
<p>i use this one <br />&lt;?php $modelCount = mysql_count('products', 'type'); ?&gt;<br /> &lt;?php if ($modelCount == 1) { ?&gt;<br />  section A<br />&lt;?php } elseif($modelCount &gt; 1) { ?&gt;<br /> section B<br />&lt;?php } ?&gt;<br /><br />example<br />model AA have type A --&gt; view in section 1<br />and <br />model B and type B<br />model 2B and type B  --&gt; View in section 2<br /><br />Could you help me please !<br />petrogus</p>]]></description>
          <pubDate>Thu, 05 Jul 2018 03:04:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242274#post2242274</guid>
        </item>
              </channel>
    </rss>
  