I have this PHP code , and i would insert a data in a table.
I don't know why , it doesn't work. I receive no error from the query.
If i print the $update_miner nothing is showed.
This is the code:
<?php
session_start();
include("header.php");
$building['rock_miner'] =3;
$current_time = time();
$update_miner = mysqli_query($connection,"INSERT INTO `updates_queue` (`user_id`,`content`, `start_at`,`end_at`,`finished`,`old_level`) VALUES ('".$_SESSION['uid']."', 'rock_update', '".$current_time."','".$current_time."',0 ,'".$building['rock_miner']."'");
include("footer.php");
?>
This is the table:

ini_set('display_errors', 1); error_reporting(-1);to the top of the page. Also try addingif($update_miner === FALSE){ die(mysqli_error($connection)); }. If an INSERT fails, there's got to be a reason (and an error message).header.php?