Hocam şu kod ile hata gelmez.
if ($kullaniciekle) {
header("Location:../login");
}else{
header("Location:../register?durum=olmadi");
}Bunun yerine şunu yazıp hata nerede bi bakabilir misiniz?
if ($vt->lastInsertId()) {
header("Location:../login");
}else {
echo $vt->errorInfo()[2];
}