i have this function that takes two values and displays them, but its not doing the calculation right?
php code:
formatVote($votes_up,$votes_down)
$net_vote = $votes_up - $votes_down;
return <<<ENDOFRETURN
<strong>$net_vote</strong>
ENDOFRETURN;
html page:
<?php
//rows retrieved from database....
formatVote($row['votes_up'],$row['votes_down']);
?>
p.s. i know the thier so no error from the mysql side of things,so the app is not calculating the results properly!