hello, i have this script in php
this is supposed to show if the player are vip or not, but the original php code is to show a storage value, but my vip system is not in Storage values, is in account > vip_time , i use this script and it show VIP for who has a vip but show to dont have vip =( can some1 help me! really needed! tyxx
REP++ for you!eace:
PHP:
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=10%>Vip Status:</TD>';
$vip = $SQL->query('SELECT * FROM players WHERE vip_time = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch();
if($vip == 0) {
$main_content .= '<TD><span class="red"><B>VIP</B></TD></TR>';
}
else
{
$main_content .= '<TD><span class="green"><B>NOT VIP</B></TD></TR>';
}
this is supposed to show if the player are vip or not, but the original php code is to show a storage value, but my vip system is not in Storage values, is in account > vip_time , i use this script and it show VIP for who has a vip but show to dont have vip =( can some1 help me! really needed! tyxx
REP++ for you!eace:
Last edited: