Hi,
I need some advise in splitting this echo into a table with 1 row and 2 columns.
The first column needs to be the £{$row['Price_ExVat']} + vat part and the second the link to the buy button.
Hope this makes sense!!
PHP Code:
<?php
//--------------'PRICE BEFORE VAT CODE'---------------------
$strProd_REF = "591";
$strCar_ID = "def";
$sqlSelect = "SELECT Prod_ID, Price_ExVat FROM products WHERE Prod_REF = '" . $strProd_REF . "' AND Car_ID = '" . $strCar_ID . "'
";
// assign the basic sqlquery
$sqlquery = $sqlSelect;
//get the result set
$result = mysql_query($sqlquery);
while ($row = mysql_fetch_assoc($result))
{
echo "£{$row['Price_ExVat']} + vat <a href=\"basket.php?src=".urlencode($_SERVER['REQUEST_URI'])."&productID=" . $row["Prod_ID"] . "\"><img src=\"images/addtobasket.jpg\" width=\"55\" height=\"28\" border=\"0\"></a>";
//end make while
}
$row = "";
mysql_free_result($result);
//--------------'END PRICE CODE'---------------------
?>
__________________
I Just a test to see what happens... Please login or register to view this content. Registration is FREE
"Let us be thankful for the fools. But for them the rest of us could not succeed..."
|