Advertisement
ujiajah1

td_total.php(backup)

Feb 9th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?
  2. include('/database/config.php');
  3. $query = "SELECT jenis, SUM(total_harga) as total_hari FROM print";      
  4. $result = mysql_query($query) or die(mysql_error());
  5. // Print out result
  6. $row = mysql_fetch_array($result);
  7.         echo "<font color=red>Rp.". $row['total_hari']."</font>";
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement