-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule_added.php
81 lines (32 loc) · 1.19 KB
/
schedule_added.php
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
36
37
38
39
40
41
<?php
include "dbconnect.php";
include "header.php";
if
(isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) {
//echo $mypassword=$_SESSION['mypassword'];
$_SESSION['project_name']=$_POST['project_name'];
$_SESSION['assigned_to']=$_POST['assigned_to'];
$_SESSION['priority']=$_POST['priority'];
$_SESSION['status']=$_POST['status'];
$_SESSION['description']=$_POST['description'];
$_SESSION['start_date']=$_POST['start_date'];
$_SESSION['end_date']=$_POST['end_date'];
echo $project_name=$_POST['project_name'];
$assigned_to=$_POST['assigned_to'];
$description=$_POST['description'];
$priority=$_POST['priority'];
$status=$_POST['status'];
$start_date=$_POST['start_date'];
$end_date=$_POST['end_date'];
}
$query=mysql_query("INSERT INTO `project`(`project_name`, `assigned_to`, `priority`, `status`, `description`, `start_date`, `end_date`,`created_by`) VALUES ('$project_name','$assigned_to','$priority','$status','$description','$start_date','$end_date','$myusername')");
if($query)
{
echo "Project inserted Succesfully";
}
else
{
echo "Something went wrong.Please try again later";
}
include "footer.php";
?>