Change color php script help

Results 1 to 6 of 6
  1. #1
    Account Upgraded | Title Enabled! medotarek is offline
    MemberRank
    Apr 2012 Join Date
    Egypt/RageZoneLocation
    615Posts

    Change color php script help

    hello guys
    can any one tell me how to add change color name to item shop?


  2. #2
    Member LGPaul is offline
    MemberRank
    Jul 2013 Join Date
    62Posts

    Re: Change color php script help

    Quote Originally Posted by medotarek View Post
    hello guys
    can any one tell me how to add change color name to item shop?
    With colors (^1,^2,^3) or donator grades?

  3. #3
    Account Upgraded | Title Enabled! medotarek is offline
    MemberRank
    Apr 2012 Join Date
    Egypt/RageZoneLocation
    615Posts

    Re: Change color php script help

    Quote Originally Posted by LGPaul View Post
    With colors (^1,^2,^3) or donator grades?
    donator grades

  4. #4
    Member LGPaul is offline
    MemberRank
    Jul 2013 Join Date
    62Posts

    Re: Change color php script help

    Quote Originally Posted by medotarek View Post
    donator grades
    Didn't tested, but if there's any error please leave it here, i will fix it.

    PHP Code:
    <?php
    if( isset($_POST['donator']) )
        {
            
    $rank antisql($_POST['donator']);
            
    $user $_SESSION['user'];

            if( 
    $rank == "" )
            {
                echo (
    '<center>Message From Administrator :<br/>You must fill all the fields</center>');
            }
            else
            {
                
    mssql_query("UPDATE Account SET UGradeID = '$rank' WHERE UserID = '$user'");
                echo (
    '<center>Message From Administrator :<br/>You now have donator color!</center>');
            }
        }
        
    ?>
    <center>
        Hai there :<br/><br/>
    <form action = "#" method = "Post"/>
        <select name="donator">
            <option value="your donator rank number example (255)" style="color: the color of this rank example(#20B2AA)">Donator</option>
           <option value="your donator rank number example (255)" style="color: the color of this rank example(#20B2AA)">Donator</option>
         <option value="your donator rank number example (255)" style="color: the color of this rank example(#20B2AA)">Donator</option>
        </select><br/><br/>
       <input type="submit" name="donator" value="Update" />
    </form>
    </center>
    EDIT : Change the "antisql" for your own anti sql function name.
    Last edited by LGPaul; 18-07-13 at 01:54 AM.

  5. #5
    Account Upgraded | Title Enabled! medotarek is offline
    MemberRank
    Apr 2012 Join Date
    Egypt/RageZoneLocation
    615Posts

    Re: Change color php script help

    Quote Originally Posted by LGPaul View Post
    Didn't tested, but if there's any error please leave it here, i will fix it.

    PHP Code:
    <?php
    if( isset($_POST['donator']) )
        {
            
    $rank antisql($_POST['donator']);
            
    $user $_SESSION['user'];

            if( 
    $rank == "" )
            {
                echo (
    '<center>Message From Administrator :<br/>You must fill all the fields</center>');
            }
            else
            {
                
    mssql_query("UPDATE Account SET UGradeID = '$rank' WHERE UserID = '$user'");
                echo (
    '<center>Message From Administrator :<br/>You now have donator color!</center>');
            }
        }
        
    ?>
    <center>
        Hai there :<br/><br/>
    <form action = "#" method = "Post"/>
        <select name="donator">
            <option value="your donator rank number example (255)" style="color: the color of this rank example(#20B2AA)">Donator</option>
           <option value="your donator rank number example (255)" style="color: the color of this rank example(#20B2AA)">Donator</option>
         <option value="your donator rank number example (255)" style="color: the color of this rank example(#20B2AA)">Donator</option>
        </select><br/><br/>
       <input type="submit" name="donator" value="Update" />
    </form>
    </center>
    EDIT : Change the "antisql" for your own anti sql function name.
    and now how can i add to itemshop?

  6. #6
    Member Chrissy is offline
    MemberRank
    Jul 2013 Join Date
    59Posts

    Re: Change color php script help

    Im guessing you can just add it under Register.php or w/e its named or create a new document and include it in Register.php. Define it there too so it knows what its doing.
    I dont know whether this can help your problem but its just something i thought can help, if its wrong then dont hate.



Advertisement