diff --git a/dbHandler.php b/dbHandler.php
index 6a9fdd5..4a433a9 100644
--- a/dbHandler.php
+++ b/dbHandler.php
@@ -200,7 +200,7 @@ function createTBATable(){
$query = "CREATE TABLE " . $dbConfig["db"] . "." .$dbConfig["tbatable"] . " (
requestURI VARCHAR(100) NOT NULL PRIMARY KEY,
expiryTime BIGINT NOT NULL,
- response JSON NOT NULL
+ response MEDIUMTEXT NOT NULL
)";
$statement = $conn->prepare($query);
if (!$statement->execute()) {
diff --git a/pitScouting.php b/pitScouting.php
index 395e88e..94ca7c3 100644
--- a/pitScouting.php
+++ b/pitScouting.php
@@ -23,39 +23,39 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -87,7 +87,93 @@
-
+
\ No newline at end of file
diff --git a/writeAPI.php b/writeAPI.php
index 32a6c87..08a8a28 100644
--- a/writeAPI.php
+++ b/writeAPI.php
@@ -22,6 +22,7 @@
catch(Exception $e){
}
}
+ echo("success");
}
if (isset($_POST["writePitData"])){
/*
@@ -29,10 +30,11 @@
spareparts : x, proglanguage : x, drivemotors: x}
*/
$db->connectToDB();
- $args = json_decode($_POST["writePitData"]);
+ $args = json_decode($_POST["writePitData"], true);
$args["entrykey"] = $eventCode . "_" . $args["teamnumber"];
$args["eventcode"] = $eventCode;
$db->writeRowToPitTable($args);
+ echo("success");
}
else if(isset($_POST["teamNum"]) and isset($_FILES["teamPic"])){
// Upload Picture API