-
Notifications
You must be signed in to change notification settings - Fork 0
/
createformphp.php
49 lines (26 loc) · 1.03 KB
/
createformphp.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
<?php
// include 'navbar.php';
include 'connection.php';
?>
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$query = "SELECT * FROM messages";
$result = mysqli_query($conn, $query);
while($row = mysqli_fetch_assoc($result)){
}
}
mysqli_close($conn);
// $query = "SELECT * FROM user WHERE email = '$email' AND password = '$password' ";
// @$result = mysqli_query($conn, $query);
?>
<script>
var close = document.getElementsByClassName("closebtn");
var i;
for (i = 0; i < close.length; i++) {
close[i].onclick = function(){
var div = this.parentElement;
div.style.opacity = "0";
setTimeout(function(){ div.style.display = "none"; }, 600);
}
}
</script>