Top

Comments

  (57)  RSS
Hawkee's
Jagfire
Comments: 7
 
Profile:  Hawkee
Posted on Jul 31, 2008 12:27 pm
Yeah, I'll probably end up grabbing it.
jonesy44
Comments: 715
 
Profile:  Hawkee
Posted on Jul 30, 2008 7:19 am
Sorted, nice one Paul
F*U*R*B*Y*
Comments: 439
 
Profile:  Hawkee
Posted on Jul 30, 2008 7:08 am
meh, wrote up my own

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);
}

:)
jonesy44
Comments: 715
 
Profile:  Hawkee
Posted on Jul 30, 2008 7:02 am
this MIGHT work :P

Code:
function _average {
  $num = <get from db>;
  $num = str_replace(" ", " + ",$num);
  $num = $num / (number of numbers, not sure how to do it);
  echo $num;
}
F*U*R*B*Y*
Comments: 439
 
Profile:  Hawkee
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
Cheiron
Comments: 140
 
Profile:  Hawkee
Posted on Jul 22, 2008 5:59 am
i would like to be added to the list of reviewers please. there have been a few scripts i have tried on here now that i have wanted to review and post my findings but have been unable to do so
RusselB
Comments: 97
 
Profile:  Hawkee
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.
log2
Comments: 52
 
Profile:  Hawkee
Posted on Feb 9, 2008 6:01 pm
Hi Hawk
Cheiron
Comments: 140
 
Profile:  Hawkee
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
F*U*R*B*Y*
Comments: 439
 
Profile:  Hawkee
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 =)
F*U*R*B*Y*
Comments: 439
 
Profile:  Hawkee
Posted on Oct 25, 2007 4:34 am
just post one, geez........
Gummo
Comments: 101
 
Profile:  Hawkee
Posted on Oct 25, 2007 4:09 am
..Is there a chance of an answer soon or is there generally a long wait? :(
Gummo
Comments: 101
 
Profile:  Hawkee
Posted on Oct 19, 2007 3:49 am
Is it alright if I post two blacklist scripts if one is a simple form, whereas the other is more advanced? (So people can get the simple version if they want)
..Or is that still counted as a new version, not allowing it?
mountaindew
Comments: 1,440
 
Profile:  Hawkee
Posted on Oct 18, 2007 8:38 pm
what do u expect him to do about it? click upload and upload a pic...
DarkDaemon
Comments: 52
 
Profile:  Hawkee
Posted on Oct 18, 2007 7:47 pm
I need a picture :;
bps19882006
Comments: 22
 
Profile:  Hawkee
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
Mono
Comments: 43
 
Profile:  Hawkee
Posted on Sep 12, 2007 5:38 pm
Delete A Script Called Explosion plz
Hawkee
Comments: 412
 
Profile:  Hawkee
Posted on Sep 11, 2007 2:23 am
Been there a few times, but I haven't tried Tatsu yet. X is pretty crazy.
mountaindew
Comments: 1,440
 
Profile:  Hawkee
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
Monky
Comments: 52
 
Profile:  Hawkee
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
1 2 3 Next
Bottom