Hi Gary,
It's a bit of a mess, I'm afraid ... here's s cleaned-up version but I can't tell from your code exactly what the logic is, but you should be able to adapt to fit.
One definite oddity is the SQL statement - it's been chopped at the end so you need to fix that
<tr>
<td><b><?php echo $text_price; ?></b></td>
<td>
<?php
$map = 'Add to Cart to See Price';
$result = mysql_query("SELECT map FROM oc_product where product XXX"); // something missing here XXX
while($row = mysql_fetch_array($result)){
if ($row['map'] == 1){
?>
<span style="color: #F00;"><?php echo $map;?></span>
<?php
} else if($special){
?>
<span style="text-decoration: line-through;"><?php echo $price;?></span>
<span style="color: #F00;"><?php echo $special; ?></span>
<?php
} else {
echo $price;
}
}
?>
</td>
</tr>
Paul
PS
Try being a bit more methodical when laying out the code - makes for an easier read and understanding (especially later).