<?php
include_once("../php/config.php");
$a = mysql_query("select sum(balance) as balance from ventas where cliente='".$_GET['cliente']."' and balance>0") or die(mysql_error());
echo @mysql_result($a, 0,"balance");
?>