EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 
10 $confid = $_POST["val"];
11 $mail = $_POST["mail"];
12 $ty = $_POST["type"];
13 
14 
15 
17 
18 
19 $result = mysql_query("SELECT * FROM users WHERE email='$mail'");
20 
21 if(mysql_fetch_array($result)==NULL) echo "No such user";
22 else{
23 
24 $result = mysql_query("SELECT * FROM users WHERE email='$mail'");
25 
26 while($row = mysql_fetch_array($result))
27  {
28 
29  $sql_insert_invitations="INSERT INTO invitations ( userid, conferenceid, usertype)
30  VALUES
31  ('$row[userid]', '$confid', '$ty')";
32  mysql_query($sql_insert_invitations) or die (mysql_error());
33 
34 
35  echo $row['username'];
36  if($ty==2)
37  echo" Was Invited to Conference as Author";
38  else if($ty==3)
39  echo" Was Invited to Conference as Referee";
40  else if($ty==4)
41  echo" Was Invited to Conference as Attendee";
42 
43  }
44 }
45 
46 //mysql_close($con);
47 ?>
48 
49 <?php
50 echo "<br><br>";
51 echo "<a href=\" ./index.php?r=inviteuser/index&va=$confid\">" . "Go Back to the Invitation Page" . "</a>";
52 ?>