$dbtable = 'vhosts';
$connection = mysqli_connect('localhost', 'xxx', 'xxx', 'xxx');
$wwwlist = mysqli_query ($connection, "SELECT * FROM $dbtable WHERE userid = $user");
$data = mysql_fetch_array($wwwlist);
echo $data;
$data = mysql_fetch_array($wwwlist);