SQL

GetRekt

Member
Aug 1, 2014
75
5
PHP:
<?php
    $users_registered = number_format(mysql_num_rows(mysql_query("SELECT null FROM users")));
    $svip = number_format(mysql_num_rows(mysql_query("SELECT null FROM users WHERE rank = '3'")));
    $pvip = number_format(mysql_num_rows(mysql_query("SELECT null FROM users WHERE rank = '4'")));
    $uvip = number_format(mysql_num_rows(mysql_query("SELECT null FROM users WHERE rank = '5'")));
    $lvip = number_format(mysql_num_rows(mysql_query("SELECT null FROM users WHERE rank = '5' AND legend = '1'")));
?>

Is there a better way to do that
 
Last edited by a moderator:

Users who are viewing this thread

Top