January 6, 2024

UMCS Fan Page

[insert_php]
global $wpdb;
$result = $wpdb->get_results(“SELECT name,fans FROM wp_umcs ORDER BY fans DESC LIMIT 50”);

if ( $result ) {
$counter = 1;
echo “

“;
//echo “Agentx”.” “.”Rank”.”

“;
//print_r($result);
foreach($result as $row)
{

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
$counter++;
}
echo “

Name Fans
‘ . $counter. ‘ ‘ . $row->name. ‘ ‘ . $row->fans. ‘

“;
}

[/insert_php]