Jump to content

Adding the values in rows and columns using the php script


Adetola Martha

Recommended Posts

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. ::)

     

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.