Adetola Martha Posted February 11, 2009 Share Posted February 11, 2009 Hi ??? pls, i was wondering if i could get help in this forum. I want a php function script that can add the value in rows that are in a column and generating the total result at the bottom of the column. I've tried the code below, but it's not giving me what i really want. <?php function add_cummulative($input_cummulative) { return $input_cummulative; } $i=0; $input_cummulative=$i; $total=$i; do { $i++; echo "Total:" . $total. "<br/>"; } while ($i<=5); ?> pls, i won't mind anyone helping me out with this. I need this solution urgently. I am still a beginner. Link to comment https://forums.phpfreaks.com/topic/144756-adding-the-values-in-rows-and-columns-using-the-php-script/ Share on other sites More sharing options...
gevans Posted February 11, 2009 Share Posted February 11, 2009 Can you show the code you're using at the moment to generate the rows and columns? Link to comment https://forums.phpfreaks.com/topic/144756-adding-the-values-in-rows-and-columns-using-the-php-script/#findComment-759570 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.