<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1017838" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1017838</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-fails-if-variable-1082#comment-1104384</link>
    <description> &lt;p&gt;Question about this statement:&lt;br /&gt;
&lt;strong&gt;if (($finalPrice - 2) &amp;gt; $paymentInterval) {&lt;br /&gt;
$finalPrice = $finalPrice - $paymentInterval;&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
Here is what is said, if finalprice -2 less than paymentinterval&lt;br /&gt;
then finalprice = finalprice - paymentinterval. Okay but where does the paymentinterval value come from?&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Mar 2002 13:16:33 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1104384 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-fails-if-variable-1082#comment-1104369</link>
    <description> &lt;p&gt;I can&#039;t duplicate any errors.  What values do I need to provide to get an error?&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Mar 2002 05:17:53 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1104369 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-fails-if-variable-1082#comment-1104361</link>
    <description> &lt;p&gt;$intV = array(1,12,24);&lt;br /&gt;
$percent = 10;&lt;br /&gt;
$unitBW = 1;&lt;/p&gt;
&lt;p&gt;if ($valHD &amp;lt;= 0) $valHD = 50;	&lt;/p&gt;
&lt;p&gt;if ($valHD &amp;lt; 100) $perHD = 0.055;&lt;br /&gt;
   elseif ($valHD &amp;lt;=300)  $perHD = 0.0499;&lt;br /&gt;
	elseif ($valHD &amp;lt;= 400) $perHD = 0.047475;&lt;br /&gt;
	  elseif ($valHD &amp;lt;= 500) $perHD = 0.04598;&lt;br /&gt;
  	    elseif ($valHD &amp;lt;= 600) $perHD = 0.04665;&lt;br /&gt;
		else $perHD = 0.035;&lt;/p&gt;
&lt;p&gt;   $valBW = $valBW / $unitBW;&lt;/p&gt;
&lt;p&gt;$finalPrice =(($percent + 100)/100) *($valHD * $perHD); &lt;/p&gt;
&lt;p&gt;	if (($finalPrice - 2) &amp;gt; $paymentInterval) {&lt;br /&gt;
	  $finalPrice = $finalPrice - $paymentInterval;&lt;br /&gt;
		}&lt;/p&gt;
&lt;p&gt;	$finalPrice = number_format($finalPrice, 2);&lt;br /&gt;
        $payFirst = number_format(($finalPrice * $intV[$paymentInterval]), 2);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Mar 2002 02:19:09 +0000</pubDate>
 <dc:creator>shanda</dc:creator>
 <guid isPermaLink="false">comment 1104361 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-fails-if-variable-1082#comment-1104353</link>
    <description> &lt;p&gt;1082 is such an odd number.  Can we see any code associated with the problem?&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Mar 2002 20:12:31 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1104353 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-fails-if-variable-1082#comment-1104348</link>
    <description> &lt;p&gt;I am assuming that this is being dumped into a database. If so, the first thing I always do is make sure that the SQL itself works. Take your insert statement from PHP and if this fails in MySQL, it will help you identify the problem. &lt;/p&gt;
&lt;p&gt;In looking at your form, you should probably put a maximum size on the form field. &lt;/p&gt;
&lt;p&gt;Posting your script here using the php tags would help us determine the problem.&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Mar 2002 17:09:48 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1104348 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
