PHP Code:
<?php
define('THIS_SCRIPT', 'test');
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// Require vBulletin backend
require_once('./global.php');
$navbits = array();
$navbits = construct_navbits($navbits);
//since i went to the trouble of importing the back end, I might as wel use it.
$query = $vbulletin->db->query("SELECT user.username FROM user WHERE userid IN (2,3,4)");
while ($row = $vbulletin->db->fetch_array($query)) {
echo $row['username'];
}
?>