<?php
echo "something not working!!!";
/*include "classes/DatabaseConnection.php";
// return JSON string of the request and results for parts of speech
echo '{"request_type":"parts_of_speech"';

// read words and linked meanings from database
$db_conn = DatabaseConnection::getConnection();

$query = "SELECT * FROM parts_of_speech";

$result = $db_conn->connection->query($query);

// initialise variables
$first_time = TRUE;

// start array of words 
echo ',"parts_of_speech":[';

foreach ($result as $row) {
        // put in comma delimiter if not first time
        if (!$first_time) {
            echo ',';
        }
        // set up details of "from word"
        echo '{"type":"part_of_speech","id":"' . $row['id'] . '","part":"' . $row['part'] . '","part_abbr":"' . $row['part_abbr'] . '"}';
    }
    $first_time = FALSE;
}

// close array of parts of speech and request object
echo ']}';
*/

?>