Profile:
Hawkee
Posted on Jul 30, 2008 7:08 am
Posted on Jul 30, 2008 7:08 am
meh, wrote up my own
:)
and now heres the function
:)
| Code: |
$scores = "1 5 10 9 7 6 8 3"; $array = split(' ', $scores); foreach ($array as $number) { $numb = $numb + $number; $a++; } echo "Scores: ".$scores."<br>Total: ".$numb."<br>Amount: ".$a."<br>"; echo "Average: ".number_format($numb/$a,0); |
:)
and now heres the function
| Code: |
function average($numbers) { $a = split(' ', $numbers); foreach ($a as $b) { $c = $c + $b; $d++; } return number_format($c/$d,0); } |
:)
Profile:
Hawkee
Posted on Jul 30, 2008 6:52 am
Posted on Jul 30, 2008 6:52 am
hey man, was wondering if you could help me with a problem
in my db i have a table called, scores, it has 3 fields, them being, 'snippet_id','scores','voters'
then, when people visit the snippet, it gets the data based on snippet_id, and in scores, i have '1 6 7 10 5 3 2 4'
how can i add them all up, and then divide it, thus fore getting the average
in my db i have a table called, scores, it has 3 fields, them being, 'snippet_id','scores','voters'
then, when people visit the snippet, it gets the data based on snippet_id, and in scores, i have '1 6 7 10 5 3 2 4'
how can i add them all up, and then divide it, thus fore getting the average
Profile:
Hawkee
Posted on Jul 14, 2008 7:03 pm
Posted on Jul 14, 2008 7:03 pm
Please delete the Alias Tracker (AKA) code located at http://www.hawkee.com/snippet/2477/ or alter the code to show the code that is currently posted at http://www.hawkee.com/snippet/4697/
They are the same script, but the 2nd one is an older version, that I tried to use to replace the 1st version (referencing URL sequencing, not age of version), as people mentioned to me that the version at http://www.hawkee.com/snippet/2477/ had problems.
Something prevented me from making the changes, thinking that there was too much of a change for an edit, forcing the 2nd posting.
They are the same script, but the 2nd one is an older version, that I tried to use to replace the 1st version (referencing URL sequencing, not age of version), as people mentioned to me that the version at http://www.hawkee.com/snippet/2477/ had problems.
Something prevented me from making the changes, thinking that there was too much of a change for an edit, forcing the 2nd posting.
Profile:
Hawkee
Posted on Jan 27, 2008 6:35 am
Posted on Jan 27, 2008 6:35 am
have posted to the forum and to you. what is the sites stance on "war scripts" and also scripts to promote the creation of clones on a users pc that run via multiple proxy. from what i was aware, these style scripts are outlawed from the bulk of servers. cloning scripts can be used as a mass flood attack on a server aka war script. i have the snippet numbers of these scripts and was not amused to find them.
can you get back to me please to let me know the sites view please
can you get back to me please to let me know the sites view please
Profile:
Hawkee
Posted on Dec 5, 2007 8:36 pm
Posted on Dec 5, 2007 8:36 pm
Hey Hawkee, hows the multiple file uploader coming along? ring out if you want a hand sure plenty of people will offer to help =)
Profile:
Hawkee
Posted on Oct 18, 2007 8:38 pm
Posted on Oct 18, 2007 8:38 pm
what do u expect him to do about it? click upload and upload a pic...
Profile:
Hawkee
Posted on Oct 17, 2007 4:23 pm
Posted on Oct 17, 2007 4:23 pm
HAWKEE! u the man! keep up the great work here dude! i hopse to see much more postive changes
Profile:
Hawkee
Posted on Sep 7, 2007 7:09 pm
Posted on Sep 7, 2007 7:09 pm
hey hawkee, i saw that ur from california. i was wondering if you have ever been to six flags magic mountain? i rly wanna go there and go on tatsu! so if uve gone, tell me how u like it :P
Profile:
Hawkee
Posted on Aug 14, 2007 12:54 pm
Posted on Aug 14, 2007 12:54 pm
Hi Hawkee. I lost conection and made a double post. Could you delete one please.
http://www.hawkee.com/snippet/3062/
sorry about that
http://www.hawkee.com/snippet/3062/
sorry about that












