<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022221" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022221</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-num-rows-error#comment-1136975</link>
    <description> &lt;p&gt;&quot;When in doubt, print it out.&quot;&lt;/p&gt;
&lt;p&gt;I think often times there is nothing wrong with the logic where the error occurs.  But rather, the data we are manipulating is not what we expected it to be at that point.&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Aug 2003 07:20:40 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1136975 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-num-rows-error#comment-1136970</link>
    <description> &lt;p&gt;I think I&#039;ve said this before, but instead of forcing someone else to go through my code line by line, I use: &lt;/p&gt;
&lt;p&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;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$qry&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_error&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Perhaps there is a better way to check line by line, but that&#039;s often all I need after a particular query to find MY ERROR and fix it.&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Aug 2003 06:42:12 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1136970 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-num-rows-error#comment-1136967</link>
    <description> &lt;p&gt;Before the mysql_num_rows() line, type: &lt;strong&gt;echo mysql_error();&lt;/strong&gt;&lt;br /&gt;
If there are any problems, that line will print it on the screen.&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Aug 2003 05:56:14 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1136967 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/mysql-num-rows-error#comment-1136962</link>
    <description> &lt;p&gt;Try testing it against FALSE.  If the query failed, for whatever reason, mysql_query() will return false.&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Aug 2003 01:49:06 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1136962 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
