From 3fd4c84713cbb220cac719bfae5bbffd5b34f729 Mon Sep 17 00:00:00 2001 From: Krystian Rzepa Date: Fri, 28 Dec 2018 19:43:14 +0000 Subject: [PATCH] Zaktualizuj 'index.php' --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }