I have a script now, but it is not working good hehe, he is doing nothing, I am sure it must be something like this:
<?php
$host = getenv("HTTP_HOST");
mysql_connect(localhost, .., ..);
mysql_select_db(..);
$sql = "SELECT * FROM leden";
$query = mysql_query($sql) or die(mysql_error);
$d = mysql_fetch_object($query);
if ($host == "$d->gebruikersnaam.bakencenter.mine.nu") {
header("location: ledensysteem/test.php");
}
?>
So every user haves his own name, I want that he get his own nickname.bakencenter.mine.nu (it is possible with the host)
Pls tell me what's wrong whit the code and say how to fix it, tnx
Neo