Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include('/database/config.php');
- $query = "SELECT jenis, SUM(total_harga) as total_hari FROM print";
- $result = mysql_query($query) or die(mysql_error());
- // Print out result
- $row = mysql_fetch_array($result);
- echo "<font color=red>Rp.". $row['total_hari']."</font>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement