diff --git a/index.php b/index.php index cd5dea1..5bb40ec 100644 --- a/index.php +++ b/index.php @@ -8,13 +8,6 @@ mysql_select_db("$db_name"); $db = mysqli_connect("$db_servername", "$db_login_tasks", "$db_password_tasks", "$db_name_tasks"); -if (isset($_POST["submit"]) && $_SESSION['zalogowany'] = true) { - $task = $_POST["task"]; - $login = $_SESSION['login']; - mysqli_query($db, "INSERT INTO `tasks_$login` (task) VALUES ('$task')"); - header('location: index.php'); -} - ?> @@ -52,16 +45,20 @@ if ($_SESSION['zalogowany']==true) echo "Zalogowano jako ".$_SESSION['login'].""; echo ' [Wyloguj]'; ?> -
+
- +
Do zrobienia @@ -75,8 +72,33 @@ if ($_SESSION['zalogowany']==true) - + + + + + +
Numer
- USUN + + x + v +
+ + Zrobione + + + + + + + + + + + + + +
NumerZadanieAkcja
+ x