Zaktualizuj 'index.php'
This commit is contained in:
parent
155ffe3ae3
commit
3fd4c84713
@ -19,7 +19,7 @@ $db = mysqli_connect("$db_servername", "$db_login_tasks", "$db_password_tasks",
|
|||||||
if (isset($_POST["submit"]) && $_SESSION['zalogowany'] = true) {
|
if (isset($_POST["submit"]) && $_SESSION['zalogowany'] = true) {
|
||||||
$task = $_POST["task"];
|
$task = $_POST["task"];
|
||||||
$login = $_SESSION['login'];
|
$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');
|
header('location: index.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user