Excellent, that worked!
The reason i was getting it wrong was i assumed that the low price would be in one row and the high price would be in the second row.
The result can be found here:
http://www.discostudio.co.uk/djshop/product.php?cat_id=5
However, am currently using the following:
<?php
$ver_query_2 = mysql_query("SELECT MIN(`ver_price`) AS `min_price`, MAX(`ver_price`) AS `max_price` FROM `prod_versions`
WHERE `ver_prod` = '".$r[product_id]."' AND `ver_type` = '1'; ");
$price = mysql_fetch_array($ver_query_2);
if ($price['min_price'] == $price['max_price']) { ?>
Price - <?php echo CURSYMBOL.number_format($price['min_price'], 2); ?>
<?php } else { ?>
Price From - <?php echo CURSYMBOL.number_format($price['min_price'], 2); ?> to <?php echo CURSYMBOL.number_format($price['max_price'], 2); ?>
<?php } ?>
But is this the best way to extract the data from the row:
$price = mysql_fetch_array($ver_query_2);
or is there a better way?