Show sourcecode

The following files exists in this folder. Click to view.

webbutv3/word-app/api/

disable-translation.php
get-problem.php
scentence/
scentence.php
submit-problem-result.php

scentence.php

11 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
<?php

include "../util/db_connect.php";
include 
"../util/practice.php";

// create new sentance
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    
$jsonData file_get_contents('php://input');
    
$requestData json_decode($jsonDatatrue);
    
new_scentence($requestData["translationId"], $requestData["scentence"]);
}