$data = "echo date('Y-m-d');"; $time = "echo date('H-i');";
i wyskakuje
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Y-m-d');', 'echo date('H-i');')' at line 1
$data = "echo date('Y-m-d');"; $time = "echo date('H-i');";
$sql = "INSERT INTO film_library(id, name, description, filmid, kind, data, czas) " . "VALUES ($id, '$name', '$description', '$aMatch[2]', '$kind', '$data', '$time')";
$sql = "INSERT INTO film_library(id, name, description, filmid, kind, data, czas) " . "VALUES ($id, '$name', '$description', '$aMatch[2]', '$kind', '$data', '$time')";