$name = mysqli_query($connect, 'SELECT * FROM `articles` WHERE `id` = ' . (int) $_GET['id']);
// $connect переменная соединения с базой.
$id = intval($_GET['id']);
var_dump($id);
$name = mysqli_query($connect, "SELECT * FROM `articles` WHERE `id` = '".$id."'");
var_dump($name);