Şöyle yapsanız hocam;
uyedetay.php dosyasında gelen nicke göre sorgu yaptırıyorsunuz ya hocam orda üye yoksa header komutu ile 404.php sayfasına yönlendirseniz.