Ok, i thought i had it sorted out. But I'm having a little problem....
I got my virual subdomains to work, thanx to sub that remembered me strugling with it on my current host. So now i got it working... But with my current host i strugled to get it working, but he helped me and we got it to wrok...
Now my problem is, it doesn't want to redirect to the correct username (sites/index.php?name=$name)
I did this code
<?
include("config.php");
$srvname=$_SERVER['SERVER_NAME'];
$srvname=strtolower($srvname);
$query = "SELECT * FROM `users` WHERE `name` = '".$srvname."'";
$result = mysql_query($query);
$otvet = mysql_fetch_array($result);
if($otvet['name'])
{
header("location: sites/index.php?name=".$srvname."");
}
else
{
header("location: http://spiderwap.co.za");
}
?>