Hi There,
I want to have my php document return data in a specific format. I want the php document to pull a currency format from myphpadmin in the following format. 25d 35c I have it set in MS Access but I cannot find a way to convert it in MYPHPAdmin or writing in the actual php document.
[php]$iPartID = $_GET[“PartID”];
$oIteminfo = mysql_query("
SELECT Items.PartID, Items.VendorCost, Items.ProductName, Sum(Sales.AmountSold) AS SumOfAmountSold
FROM Items
LEFT JOIN Sales
ON Items.PartID = Sales.PartID
GROUP BY Items.PartID, Items.VendorCost, Items.ProductName
HAVING Items.PartID=$iPartID;
") or die(mysql_error());
while($row = mysql_fetch_array($oIteminfo))
{
ECHO “
WOWAuctionSales
”;ECHO “<img src=”/images/".$iPartID.".jpg">";
ECHO “
”.$row[‘ProductName’]."
";
ECHO “Total Sold:”.$row[‘SumOfAmountSold’]."
";
ECHO “Vendor Price:”.$row[‘VendorCost’]."
";
}
?>
[/php]
I want the Vendorcost to be the type that returns the 25d 15c
Thanks.