Zaktualizuj 'index.php'

This commit is contained in:
Krystian Rzepa 2018-12-28 19:43:14 +00:00
parent 155ffe3ae3
commit 3fd4c84713

View File

@ -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');
}