RE: [PHP-WIN] Mathimatical equations in PHP

From: Date: Fri, 28 Dec 2001 07:33:47 +0000
Subject: RE: [PHP-WIN] Mathimatical equations in PHP
Groups: php.windows 
Request: Send a blank email to php-windows+get-11165@lists.php.net to get a copy of this message
>I have a site that is for a football game and people play each other then >report who is the winner and loser. Well, I want to inject some excitement >a bit and do some stats, like Passing averages per game and rushing average >per game. > >The problem is that it will need to make the total yards then divide them by >the number of games they played. > >How would I do that? What about the old fashion addition, multiplication and division we all learnt in basic school? > Also would I need two rows, one for total yards and >one for averages? or just one row just for the averages? For total use addition for average divide the total with number of participates.

« previous php.windows (#11165) next »