Hi All
I need help and i am new to php so bare wih me :confused:
what i m tryin 2 do is that add poduct shipping handeling togther to get an avraged rate so this is the part of code Troubling me:
$nrow = mysql_num_rows($result);
if ($Vh4 == "VH4")
{
for ($i=0;$i<$nrow;$i++);
{
$row = mysql_fetch_array($result);
extract ($row);
$Total = $Total + $VH4 + $UD4 + $Handling;
}
}
else
{
echo "LOL<BR><BR>";
}
$Total = $Total / $nrow;
echo "<br>$Total<br>";
Problem here is that it is not adding all the rows together and then getitng the price but instead its just avraging 1 row.