Results 1 to 1 of 1
  1. #1
    dunkerr
    dunkerr is offline
    New member dunkerr's Avatar
    Join Date
    2011 Jul
    Posts
    4
    Thanks
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0

    [PHP] Rating script

    Preview:


    Live demo: http://garryone.trei.ro/tests/voting.php

    Source:

    PHP Code:
    <?php
    function get_rating($number) {
        if(
    is_numeric($number)) {
            if(
    $number <= 10 ) {
                for(
    $i=1;$i<=$number;$i++) {
                    echo 
    '<img src="http://i.imgur.com/SdT8y.png" width="20px"/>';
                }
                if(
    strpos($number,".") && substr($number,2,1) != 0) {
                    if(
    substr($number,2,1) >&& substr($number,2,1) <= 7) {
                        echo 
    '<img src="http://i.imgur.com/kl5R2.png" height="19px" />';
                    }
                    if(
    substr($number,2,1) > 7) {
                        echo 
    '<img src="http://i.imgur.com/SdT8y.png" width="20px"/>';
                    }
                }
            }    
            if(
    $number 10) {
                echo 
    'Value must be up to 10.';
            }
        }    
        if(!
    is_numeric($number)) {
            echo 
    'Value must be numeric.';
        }    
    }


    if(isset(
    $_POST['submit'])) {
        echo 
    get_rating($_POST['text']);
    }
    ?>
    <form action="" method="post">
    <input type="text" name="text" />
    <input type="submit" name="submit" />
    </form>

  2. The Following User Says Thank You to dunkerr For This Useful Post:


Similar Threads

  1. [Release] [Rohan]Extractor + Blender Script
    By CriticalError in forum Game Models and Graphic
    Replies: 19
    Last Post: 2017-02-04, 05:38 PM
  2. [Bot] The Crims Auto Script
    By Grooguz in forum Browser Games
    Replies: 11
    Last Post: 2013-11-17, 07:16 PM
  3. [Help] need script file for PW (.ahk)
    By Shibiusa in forum Perfect World
    Replies: 1
    Last Post: 2011-12-29, 12:42 PM
  4. Agbot Script Maker
    By kazaam00nix in forum Silkroad Online
    Replies: 2
    Last Post: 2010-11-25, 12:29 PM
  5. MM ReqBot Script.
    By stirlitssss in forum Requiem Bots, Hacks, Cheats
    Replies: 14
    Last Post: 2010-11-23, 02:09 AM
Visitors found this page by searching for:

php rating script

PHP Model Rating Script

code of 10 rating in php

auto script the crims

script game the crims

script thecrims

the crims php bot

the crims game script

rating script 2012

the crims script 2012

code for rating in php

rating a game in php code

rating in php code

php rating code

thecrims script 2012

rating script

php ratings script pro

php rating

the crims web bot 2012

php game rating script

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •