-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathregora.php
executable file
·34 lines (30 loc) · 1.28 KB
/
regora.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
<?php
require('connection.php');
require('functions.php');
if(isset($_POST['name']) && $_POST['name']!=''){
$name=$_POST['name'];
$mail=$_POST['email'];
$mobile=$_POST['mobile'];
date_default_timezone_set("Asia/Kolkata");
$added_on=date('Y-m-d h:i:s');
mysqli_query($con,"INSERT INTO `users`(`ccode`, `name`, `mail`, `mobile`, `password`, `role`, `image`, `refer-by`, `added_on`) VALUES ('stmo','$name','$mail','$mobile','stm@123','2','0','0','$added_on')");
echo "<br>";
echo "INSERT INTO `users`(`ccode`, `name`, `mail`, `mobile`, `password`, `role`, `image`, `refer-by`, `added_on`) VALUES ('stmo','$name','$mail','$mobile','stm@123','2','0','0','$added_on')";
echo "<br>";
$vid=mysqli_insert_id($con);
// $vid='stmo'.$vido;
$designation=$_POST['designation'];
$clgid=$_POST['clgid'];
$branch=$_POST['branch'];
$clg=$_POST['clgname'];
mysqli_query($con,"INSERT INTO `valunteers`(`vid`, `ccode`, `designation`, `clg-id`, `branch`, `clg`) VALUES ('$vid','stmo','$designation','$clgid','$branch','$clg')");
echo "<br>";
echo "INSERT INTO `valunteers`(`vid`, `ccode`, `designation`, `clg-id`, `branch`, `clg`) VALUES ('$vid','stmo','$designation','$clgid','$branch','$clg')";
echo "<br>";
echo "done";
echo "<br>";
echo "<a href='form.php'>go home</a>";
}else{
echo "edho thappu jarigindhi myaan";
}
?>