php calculations and echoing?

NepPhamma

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