$query = "SELECT * FROM `news`;";
// FETCHING DATA FROM DATABASE
$result = $con->query($query);
if ($result->num_rows > 0)
{
// OUTPUT DATA OF EACH ROW
while($row = $result->fetch_assoc())
{
$id=$row["id"];
$date=$row["date"];
$title=$row["title"];$titolo=$title;
$title=slugify ( $title);
$image1=$row["image1"];
$image2=$row["image2"];
$image3=$row["image3"];
$image4=$row["image4"];
$description=$row["description"];
?>