check this please
$user_id = (int)$_GET['user_id'];
$sql = 'DELETE FROM users WHERE user_id=:user_id';
$query = $db->prepare($sql);
$query->bindParam('user_id',$user_id,PDO::PARAM_STR);
$delete = $query->execute();
actually it is wokring prperly and it deletes the user row from database
but the question here is that i didn't write ':' that column in the bind query i mean
this should be wrong
$query->bindParam('user_id',$user_id,PDO::PARAM_STR);
this should be correct
$query->bindParam(':user_id',$user_id,PDO::PARAM_STR);
but it doesn't throw any exception and the user row is being deleted successfully
any explaination about this ?