Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 75
0 Users 1 Guests Online

Percent Complete

Simple tutorial really just adding and dividing :) good for beginners.

First make you index.php file then do what you wish to it.

Next you will want to type up something like:

Code

<?php
$c = "25"; //Coding variable
$f = "25"; //Forums variable
$d = "0"; //Design
$p = "0"; //Panel systems
$domath = ($c+$f+$d+$p)/4; //this does the math of adding and dividing
echo "<b>Coding</b>: $c%<br />
<b>Forums</b>: $f%<br />
<b>Design</b>: $d%<br />
<b>Control Panels</b>: $p%<br />
<b>Total</b>: $domath"; //echos all percents
?>


That should be it! pretty easy eh?
ShadowMage
Author:
Views:
2201
Rating:
Posted on Sunday 11th May 2008 at 12:30 AM
Adam981
Adam981
It's ALIVE! LOL working good :)
Posted on Saturday 10th May 2008 at 10:17 PM
ShadowMage
ShadowMage
Updated code try again now, the quotes were messed up.
Posted on Saturday 10th May 2008 at 01:03 PM
Adam981
Adam981
Well dude, that kinda sucks. i keep getting this as the display

Coding: $c%
Forums: $f%
Design: $d%
Control Panels: $p%
Total: $domath%
Posted on Tuesday 6th March 2007 at 08:24 PM
ShadowMage
ShadowMage
Yep instead of figuring it out on paper you can use a php code.
Posted on Tuesday 6th March 2007 at 02:24 PM
Dean
Dean
what esacly does this code to jus count up the total percent complete of your site?