<?php
$uruna = mysql_query("SELECT sum(b.fiyat) topik from sepet a, urunler b where a.kid=$_SESSION[idm] and a.urunid=b.id");
while ($row2 = mysql_fetch_array($uruna)) {
?>
<strong>Toplam Fiyat :<?php echo $row2["topik"]; ?></strong><br>
<?php
}
?>bu muhtemelen çalışacaktır.