0byt3m1n1-V2
Path:
/
home
/
nlpacade
/
www
/
adminnlp
/
php
/
event
/
[
Home
]
File: add2.php
<?php session_start(); if(isset($_SESSION['login'])){ include('../connect.php'); $date_start = $_POST['start_year'].'-'.$_POST['start_month'].'-'.$_POST['start_day']; $date_end = $_POST['end_year'].'-'.$_POST['end_month'].'-'.$_POST['end_day']; $title = $_POST['description']; $sql = "INSERT INTO events (title,start,end) VALUES ('$title','$date_start','$date_end')"; mysql_query($sql) or die ('erreur'); mysql_close(); header('Location:../../admin.php'); }else{ header('Location:../../login.html'); } ?>
©
2018.