EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 
10  $conid = $_POST['val'];
11 
12  $confname = $_POST['confname'];
13  $rooms = $_POST['rooms'];
14  $endtime = $_POST['endtime'];
15  $starttime = $_POST['starttime'];
16  $confdate = $_POST['confdate'];
17  $address = $_POST['address'];
18  $description = $_POST['description'];
19 
20 
21 
23 
24 
25 
26 /*
27 echo "confid:" . $conid;
28 echo "<br/>confname:" . $confname;
29 
30 $sql_edit_conference="UPDATE conference SET name='$confname', rooms='$rooms', endtime='$endtime',
31 starttime='$starttime', conf_date='$confdate', address='$address', description='$description'
32  WHERE conferenceid=$conid";
33  */
34 if($confname == NULL) ;
35 else {
36 $sql_edit_conference="UPDATE conference SET name='$confname' WHERE conferenceid=$conid";
37 mysql_query($sql_edit_conference) or die (mysql_error());
38 }
39 
40 if($rooms == NULL) ;
41 else {
42 $sql_edit_conference="UPDATE conference SET rooms='$rooms' WHERE conferenceid=$conid";
43 mysql_query($sql_edit_conference) or die (mysql_error());
44 }
45 
46 if($endtime == NULL) ;
47 else {
48 $sql_edit_conference="UPDATE conference SET endtime='$endtime' WHERE conferenceid=$conid";
49 mysql_query($sql_edit_conference) or die (mysql_error());
50 }
51 
52 if($starttime == NULL) ;
53 else {
54 $sql_edit_conference="UPDATE conference SET starttime='$starttime' WHERE conferenceid=$conid";
55 mysql_query($sql_edit_conference) or die (mysql_error());
56 }
57 
58 if($confdate == NULL) ;
59 else {
60 $sql_edit_conference="UPDATE conference SET conf_date='$confdate' WHERE conferenceid=$conid";
61 mysql_query($sql_edit_conference) or die (mysql_error());
62 }
63 
64 if($address == NULL) ;
65 else {
66 $sql_edit_conference="UPDATE conference SET address='$address' WHERE conferenceid=$conid";
67 mysql_query($sql_edit_conference) or die (mysql_error());
68 }
69 
70 if($description == NULL) ;
71 else {
72 $sql_edit_conference="UPDATE conference SET description='$description' WHERE conferenceid=$conid";
73 mysql_query($sql_edit_conference) or die (mysql_error());
74 }
75 
76 echo "<br/>Conference Edited" . "<br/>";
77 //INSERTION OF CONFERENCE
78 //insert conference properties into conference table
79 
80 //mysql_close($con);
81 
82 ?>