forked from AndersonGroupPHInternal/HROnline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asd.php
71 lines (56 loc) · 2.05 KB
/
asd.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
include('connect.php');
// $sql = "DELETE FROM tbl_application WHERE `NAME` = 'Rizal'";
// $result = $conn->query($sql);
// if ($result) {
// echo "yey!";
// }else{
// echo "failed";
// }
//$sql = "SHOW COLUMNS FROM tbl_examresult";
$sql = "SELECT * FROM tbl_ ";
/*$sql = "INSERT INTO tbl_nonagentquestionnaire(intQuestion_ID, interviewquestion) VALUES ('3','Describe a situation you feel has prepared you for this role?')";
$result = $conn->query($sql);
echo "successful";
$sql1 = "INSERT INTO tbl_nonagentquestionnaire(intQuestion_ID, interviewquestion) VALUES ('4','What is your strongest personal quality?')";
$result1 = $conn->query($sql1);
echo "successful";
$sql3 = "INSERT INTO tbl_nonagentquestionnaire(intQuestion_ID, interviewquestion) VALUES ('5','What are some of your leadership experiences? Can you give an example?')";
$result3 = $conn->query($sql3);
echo "successful";
$sql4 = "INSERT INTO tbl_nonagentquestionnaire(intQuestion_ID, interviewquestion) VALUES ('6','If successful, what can you contribute to Anderson Group Philippines? ')";
$result4 = $conn->query($sql4);
echo "successful";
$sql5 = "INSERT INTO tbl_nonagentquestionnaire(intQuestion_ID, interviewquestion) VALUES ('7','What are the three things your former manager would like you to improve on?')";
$result5 = $conn->query($sql5);
echo "successful"; */
//edward
//$sql = "SELECT * FROM tbl_essay WHERE APPLICANT_ID='8810'";
/*$sql = "UPDATE tbl_admin
SET role = 'Admin'
WHERE username = 'marvin'";
$result = $conn->query($sql);
if($result){
echo "successful";
}*/
/* if($result){
//while($row = $result->fetch_assoc()){
//if($result){
//print_r($row);
//echo $row['Answer']."<br>";
echo "<br>";
echo "yay!";
}
else{
echo "aaaaaaahhhh";
}*/
//delete code
$sql = "DELETE FROM tbl_useractionlogs WHERE username = 'marvin'";
$result = $conn->query($sql);
if ($result){
echo "Record Deleted!";
}
else{
echo "Error!";
}
?>