-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsertActividad.php
More file actions
35 lines (19 loc) · 848 Bytes
/
insertActividad.php
File metadata and controls
35 lines (19 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
session_start();
if($_SERVER['REQUEST_METHOD'] == 'POST'){
require_once('baseDatos.php');
$bd = BaseDeDatos::getInstancia();
$conexion = $bd -> getConexion();
$nombreActividad = $_POST["nombreAct"];
$detalle = $_POST['detalles'];
$fecha_hora = $_POST["date_tarea"];
$id_tarea = $_POST["listatareas"];
$senten = "INSERT INTO actividades(nombreActividad, detalles, fecha_hora, id_tarea) VALUES ('$nombreActividad','$detalle','$fecha_hora','$id_tarea')";
$insertar = $conexion -> prepare($senten);
$insertar -> execute();
if($_POST["date_tarea"] != '0000-00-00') {
}
header('Location: actividades-form.php');
//if($_POST["titulo"]!= null or $_POST["dias_faltantes"] != null){
}
?>