hello, can you please show me how to display $mypricetag after $row['price'] echo "<td align=\"center\"> ".($row['price'] > 0.00?" $mypricetag ".$row['price']:"-")."</td>"; PHP:
echo "<td align=\"center\"> " . (($row['price'] > 0.00) ? $mypricetag . $row['price'] : "-") . "</td>"; Hope that helps aXe
echo "<td align=\"center\"> ".($row['price'] > 0.00?" . $mypricetag ".$row['price']:"-")."</td>"; this help you
At the moment my output is: £ 2.00 i want to change this into 2.00 £ $mypricetag is the currency sembol (£$...)
echo "<td align=\"center\"> " . (($row['price'] > 0.00) ? $row['price'] . $mypricetag : "-") . "</td>"; Will do the trick aXe
thanks alot. it worked kind of but it made changes on my design. it added another <td> when there is no price for that field.