hoe krijg ik deze code uit een loop?
jorrie
29/05/2005 22:08:00Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?
$subdomain = explode(".",$_SERVER['SERVER_NAME']);
$subdomain = $subdomain[0];
$subdomain = str_replace("../", "", $subdomain);
if($subdomain != "www" AND $subdomain !="1" AND $subdomain != "2" AND $subdomain !="3") {
$doId = f(q("SELECT id FROM dt_members WHERE login = '$subdomain'"));
// print "ID". $doId[id];
// print $subdomain[0];
if($doId['id']) {
$doId2 = f(q("SELECT id FROM dt_profile WHERE member_id = '$doId[id]'"));
//header("Location: http://domain.tk?page=view_profile&id={$doId2['id']}");
// loopt
header("Location: " . "<? $subdomain?>" . "domain.tk?page=view_profile&id={$doId2['id']}");
}
}
?>
$subdomain = explode(".",$_SERVER['SERVER_NAME']);
$subdomain = $subdomain[0];
$subdomain = str_replace("../", "", $subdomain);
if($subdomain != "www" AND $subdomain !="1" AND $subdomain != "2" AND $subdomain !="3") {
$doId = f(q("SELECT id FROM dt_members WHERE login = '$subdomain'"));
// print "ID". $doId[id];
// print $subdomain[0];
if($doId['id']) {
$doId2 = f(q("SELECT id FROM dt_profile WHERE member_id = '$doId[id]'"));
//header("Location: http://domain.tk?page=view_profile&id={$doId2['id']}");
// loopt
header("Location: " . "<? $subdomain?>" . "domain.tk?page=view_profile&id={$doId2['id']}");
}
}
?>
PHP hulp
13/01/2025 20:26:40Jelmer -
29/05/2005 22:54:00header("Location: " . "</? $subdomain?>" . "domain.tk?page=view_profile&id={$doId2['id']}");
Moet zijn
header("Location: " . $subdomain . "domain.tk?page=view_profile&id={$doId2['id']}");
Moet zijn
header("Location: " . $subdomain . "domain.tk?page=view_profile&id={$doId2['id']}");