
Originally Posted by
medotarek
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.