function control($v1,$v2,$v3){
$sef =permalink($v1);
$sql ="SELECT * FROM datas WHERE sef=?";
$query = $db->prepare($sql);
$query->execute([$sef]);
$datas = $query->fetchAll(PDO::FETCH_ASSOC);
foreach($datas as $data){
$control = $data["sef"];
if($sef != $control){
insertSql($v1,$v2,$v3);
}
}
}