Adres çubuğunda formu mysql enjeksiyon korumak için nasıl

0 Cevap php

Bu işe yaramıyor,

<?php 
if(!isset($_GET['id'])){
    header('location: index.php');
}
$id = $_GET['id'];
if(!is_int($id)){
    header('location: index.php');
    }


 ?>

Url olmasına rağmen hep beni yönlendirerek oluyor http://localhost/JMToday/classes/images.php?id=53

0 Cevap