<?
#connect to the server and select db
mysql_connect("localhost","root","redneck");
mysql_select_db("bpashop");
#query the db
$query = "SELECT SUM(final_price) FROM orders_products";
$result = mysql_query($query)
or die(mysql_error());
#display results
while($i = mysql_fetch_row($result)) {
echo $i[0];
echo $i[1];
}
?>
will this work ?