Removed unnecessary files

This commit is contained in:
mmk2410 2015-10-21 15:27:20 +02:00
parent 39ff574037
commit ab70dabcd7
2 changed files with 0 additions and 26 deletions

View file

@ -1,5 +0,0 @@
<?php
echo "<b>Some arg:</b>";
echo "<br>";
echo $_GET['arg'];
?>

View file

@ -1,21 +0,0 @@
<?php
if (!isset($_GET['id'])) {
echo "No id given!";
return;
}
$id = $_GET['id'];
include './config.php';
$conn = new mysqli($dbhost, $dbuser, $dbpassword, $dbname);
if ($conn->error) {
die("Failed to connect to the database: " . $conn->error);
}
$sql = "SELECT * FROM Titama WHERE id=$id";
$res = $conn->query($sql);
$course = $res->fetch_assoc();
if(isset($course)){
echo json_encode(true);
} else {
echo json_encode(false);
}
include './closedb.php';
?>