diff --git a/index.php b/index.php index 722f316..f8c8937 100644 --- a/index.php +++ b/index.php @@ -19,7 +19,7 @@ $db = mysqli_connect("$db_servername", "$db_login_tasks", "$db_password_tasks", if (isset($_POST["submit"]) && $_SESSION['zalogowany'] = true) { $task = $_POST["task"]; $login = $_SESSION['login']; - mysqli_query($db, "INSERT INTO `tasks_'$login'` (tasks) VALUES ('$task')"); + mysqli_query($db, "INSERT INTO `tasks_$login` (task) VALUES ('$task')"); header('location: index.php'); }