havent been on here in a while as have been working alot on CSS.
i have the following piece of code:
Code: Select all
HTMLEOF;
while($row = mysql_fetch_array($result))
{
$Subtotal += ($rowї"e;qty"e;] * $rowї"e;P_Price"e;]);
$count += $rowї"e;qty"e;];
$rowї"e;P_Price"e;] = number_format($rowї"e;P_Price"e;], 2, "e;."e;, "e;,"e;);
$unittotal = ($rowї"e;qty"e;] * $rowї"e;P_Price"e;]);
$unittotal = number_format($unittotal, 2, "e;."e;, "e;,"e;);
print <<<HTMLEOF
<tr>
<td height="e;64"e; valign="e;top"e;><img src=./pics/{$rowї"e;P_Stock"e;]}.jpg alt="e;image of plane"e; width="e;82"e; height="e;62"e; class="e;planeimage"e; /></td>
<td>{$rowї"e;P_Name"e;]}</td>
<td colspan="e;2"e; valign="e;middle"e;>\${$rowї"e;P_Price"e;]}</td>
<td align="e;left"e; valign="e;middle"e;>{$rowї"e;qty"e;]}</td>
<td colspan="e;2"e; valign="e;middle"e;>&nbsp;\${$unittotal}</td>
</tr>
HTMLEOF;
} //You have to have this read as php
$shipping = $shipping*$count;
$AircraftTotal = $Subtotal;thats all fine.
but in the above code there is a loop and i want to insert in to the database variables like this
Code: Select all
{$row["P_Name"]}How would i go about inserting looped variables like this?
thanks alot guys
feyd | Please review how to post code using
Code: Select all
andCode: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]