-
Notifications
You must be signed in to change notification settings - Fork 1
/
invitee.php
36 lines (30 loc) · 893 Bytes
/
invitee.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
<!DOCTYPE html>
<?php
require_once('private/conn.php');
session_start();
include('mailsih.php');
if($_SERVER["REQUEST_METHOD"] == "POST")
{
#echo "HEY";
$id = $_POST["id"];
$event_id=$_GET["eventid"];
for($x = 0; $x < count($id); $x++){
$insert = 'INSERT INTO `guests` VALUES (\''.$event_id.'\', \''.$id[$x].'\' , 0,0) ;';
$db->query($insert);
}
$b=array();
for($x=0;$x<count($id);$x++){
$sql = 'select `Email_ID` from `minister_info` where `Minister_ID`= \''.$id[$x].'\'';
$a=$db->get_row($sql);
array_push($b, $a->Email_ID);
var_dump($a);
}
SendCode($b,$event_id);
?>
<script>
window.alert("The mail has been sent!!:)");
window.location.href="updateEvent.php?eventid=<?php echo $event_id;?>";
</script>
<?php
}
?>