$_GET['id'] = mysqli_real_escape_string($d,$_GET['id']);
instead of
$id = mysqli_real_escape_string($d,$_GET['id']);
Is this safe, or is there a chance, that the mysqli_real_escape_string()
doesn't work, which makes the $_GET['id']
still dangerous (SQL-injection)?