EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
9 $paperid = $_POST["val"];
10 $mail = $_POST["mail"];
11 
12 
14 
15 $result = mysql_query("SELECT * FROM users WHERE email='$mail'");
16 
17 if(mysql_fetch_array($result)==NULL) echo "No such user";
18 else{
19 
20 //echo $confid . "<br/>" . $mail . "<br/>" . $ty . "<br/>";
21 $result = mysql_query("SELECT * FROM users WHERE email='$mail'");
22 
23 while($row = mysql_fetch_array($result))
24  {
25 
26  $sql_insert_paper_referee="INSERT INTO paper_referee ( paperid, userid)
27 VALUES
28 ('$paperid','$row[userid]')";
29 mysql_query($sql_insert_paper_referee) or die (mysql_error());
30 
31 echo "Referee is assigned to paper";
32 
33  }
34 }
35 
36 //mysql_close($con);
37 ?>