-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.php
42 lines (25 loc) · 874 Bytes
/
view.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
<!DOCTYPE html>
<html>
</html>
<?php
require_once('connection.php');
if (isset($_GET['l'])){
$query = "INSERT INTO directions (direction) VALUES ('l')";
mysqli_query($conn, $query);
echo 'L';}
if (isset($_GET['r'])){
$query = "INSERT INTO directions (direction) VALUES ('r')";
mysqli_query($conn, $query);
echo 'R';}
if (isset($_GET['u'])){
$query = "INSERT INTO directions (direction) VALUES ('u')";
mysqli_query($conn, $query);
echo 'U';}
if (isset($_GET['d'])){
$query = "INSERT INTO directions (direction) VALUES ('d')";
mysqli_query($conn, $query);
echo 'D';}
if (isset($_GET['s'])){
$query = "INSERT INTO directions (direction) VALUES ('s')";
mysqli_query($conn, $query);
echo 'S';}