-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqun.php
More file actions
41 lines (29 loc) · 683 Bytes
/
qun.php
File metadata and controls
41 lines (29 loc) · 683 Bytes
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
<!DOCTYPE HTML>
<html>
<?php
include 'db.php';
?>
<?php
$sql = "SELECT * FROM component";
$result = mysqli_query($con, $sql);
$row = mysqli_fetch_assoc($result);
if (mysqli_num_rows($result) > 0) {
$nu=$row['number'];
if($nu<100){
echo "$nu";
require 'phpmailer/PHPMailerAutoload.php';
$hello = "hello";
$mail = new PHPMailer();
$mail->Username = 'component.management@gmail.com';
$mail->Password = 'wanted@13';
$mail->setFrom('component.management@gmail.com', 'department');
$mail->addAddress('rohit29041998@gmail.com');
$mail->Subject = 'notifiaction for of reuest';
$mail->Body = "The accepted";
$mail->send();
}
}
mysqli_close($con);
?>
</body>
</html>