query("SELECT COUNT(id) FROM Artists WHERE orgineel = '$lookalike")->fetchColumn(); if($zijnernog == 1){ $sql = "SELECT id FROM Artists WHERE orgineel = '$lookalike'"; foreach ($dbh->query($sql) as $row) {$id = $row['id']; $org = str_replace(" ", "-", $lookalike); header('Status: 301 Moved Permanently'); header('Location: https://'.$website.'/Lookalike-imitator/?'.$id.'/'.$org.'-lookalike.html'); exit(0); } } if($zijnernog > 1){ header('Status: 301 Moved Permanently'); header('Location: https://'.$website.'/Artists/alle-lookalikes-en-imitators-van.php?act='.$org.''); exit(0); } if($zijnernog == 0){ header('Status: 301 Moved Permanently'); header('Location: https://'.$website.'/Zoeken/?'.$lookalike.''); exit(0); } ?>