Pri pokuse zapisat hodnoty do databazy
$query = "INSERT INTO kom ( `cislo`, `meno`, `text`, `cas`) VALUES ($hod, '" . mysqli_real_escape_string($link, $_SESSION['name']) . "', '" . mysqli_real_escape_string($link, $text) . "', '" . mysqli_real_escape_string($link, date("d.m.y H:i:s")) . "' )";
hlasi chybu ktoru neviem opravit
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' 'lukas', 'abc', '04.01.16 23:11:10' )' at line 1