<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013624" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013624</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-php-counting-loop#comment-1078968</link>
    <description> &lt;p&gt;You can stop beating your face on your desk. I think the World has enough Bulldogs.&lt;/p&gt;
&lt;p&gt;Although, if you feel it is necessary and want to feel like you have accomplished something at the same time, I would recommend chasing parked cars. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 05 Mar 2001 15:44:31 +0000</pubDate>
 <dc:creator>cds</dc:creator>
 <guid isPermaLink="false">comment 1078968 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>*beating face on desk*</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-php-counting-loop#comment-1078950</link>
    <description> &lt;p&gt;sorry I missed that..&lt;/p&gt;
 </description>
     <pubDate>Mon, 05 Mar 2001 07:21:03 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1078950 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-php-counting-loop#comment-1078888</link>
    <description> &lt;p&gt;Thanks Mark,&lt;/p&gt;
&lt;p&gt;Got me started in the right direction anyway. As was listed above, it would only return the first $sprice in $total. &lt;/p&gt;
&lt;p&gt;After consulting the PHP manual &quot;again&quot;, it occurred to me that with the &#039;if&#039; statement, it really wasn&#039;t creating a loop. Changing the &#039;if&#039; to &#039;while&#039; fixed the problem and life is good and I like computers again. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 04 Mar 2001 16:35:06 +0000</pubDate>
 <dc:creator>cds</dc:creator>
 <guid isPermaLink="false">comment 1078888 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-php-counting-loop#comment-1078869</link>
    <description> &lt;p&gt;just add all the sprices, right?&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;$total &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sum &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;select sprice from sell_quote where orderid = &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cartid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; and complete = -1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row1 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sum&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)){&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sprice &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$row1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;sprice&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$total &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;+= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sprice&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&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;&#039;&lt;/p&gt;
 </description>
     <pubDate>Sat, 03 Mar 2001 17:48:16 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1078869 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
