$ret = mysql_query('SELECT SUM(depenses) FROM ameli'); //compte
$depenses = mysql_fetch_array($ret);
echo'Dépenses Total: ' .$depenses[0].'€';
$ret = mysql_query('SELECT SUM(remb_ameli+remb_b2v) FROM ameli'); //compte
$depenses = mysql_fetch_array($ret);
echo 'Total Remboursé: ' .$depenses[0].'€';
$ret = mysql_query('SELECT SUM(depenses-(remb_ameli+remb_b2v)) FROM ameli'); //compte
$depenses = mysql_fetch_array($ret);
echo 'Total Charge Patients:' .$depenses[0].'€';
?>
<INPUT type='text' SIZE='10' NAME='depenses' VALUE="<?php echo $ret; ?>"/>
$depenses = mysql_fetch_array($ret);
echo'Dépenses Total: ' .$depenses[0].'€';
$ret = mysql_query('SELECT SUM(remb_ameli+remb_b2v) FROM ameli'); //compte
$depenses = mysql_fetch_array($ret);
echo 'Total Remboursé: ' .$depenses[0].'€';
$ret = mysql_query('SELECT SUM(depenses-(remb_ameli+remb_b2v)) FROM ameli'); //compte
$depenses = mysql_fetch_array($ret);
echo 'Total Charge Patients:' .$depenses[0].'€';
?>
<INPUT type='text' SIZE='10' NAME='depenses' VALUE="<?php echo $ret; ?>"/>