Griffith Designs

PHP

Working on a New Website

by webmasterjunkie on Oct.19, 2010, under Designs, PHP, Programming, Service, Web

Well, I am working with my old friend from the down under, yes Australia, on a new website. We are both hoping this one sells for as much as the last one we did together. This one is focused on blog traffic trading. Almost like the popular 2leep system. Right now I am working the code through while he gets his design together. Once all is said and done, we hope to get the site up and running by the end of the month. There are a few bugs in the code base, but PHP is relatively easy for me to fix. As soon as we get to that point, I’ll update with a link.

Leave a Comment :, , more...

PHP Percentage Function

by webmasterjunkie on Oct.15, 2010, under Internet, PHP, Programming

OK, sometimes you need a quick way to get a percentage, so here’s a little PHP code you can use to get one.

1
2
3
4
5
6
7
8
9
function get_percent ($part, $whole) {
    $numberOne = $part / $whole;
    $numberTwo = $numberOne * 100;
    $numberThree = number_format ($numberTwo, 0)
    $number = $numberThree . "%";
    return $number;
}
// Call the function like this:
print "You received a " . get_percent (21, 30) . " on your test.";
Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Connect