-
Notifications
You must be signed in to change notification settings - Fork 0
/
advance-submitter.php
42 lines (29 loc) · 968 Bytes
/
advance-submitter.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
37
38
39
40
41
<?php
/*
* Developed by SMN Shuvo
* Using it without credit will be under copyright strike *
*/
include ('connect.php');
$date = date('l jS \of F Y h:i:s A');
echo "Submission ID " . $date ;
echo "<br>";
// idk why the mysql engine is not taking empty value
$shuvo = filter_input(INPUT_POST, 'Shuvo');
$touhid = filter_input(INPUT_POST, 'Touhid');
$mahir = filter_input(INPUT_POST, 'Mahir');
$mehedi = filter_input(INPUT_POST, 'Mehedi');
$mahmud = filter_input(INPUT_POST, 'Mahmud');
$anik = filter_input(INPUT_POST, 'Anik');
// form input section
$sql = "INSERT INTO mess_advance (time_of_adding, Shuvo, Touhid, Mahir, Mehedi, Mahmud, Anik) VALUES "
. "('$date', '$shuvo', '$touhid', '$mahir', '$mehedi', '$mahmud', '$anik')";
if ($cnct->query($sql)){
echo "Data added";
echo "<br> <a href='meal.php'> Click Here to See the meals </a>";
}
else {
echo "error" . $cnct->error;
}
// cloxd connection
mysqli_close($cnct);
?>