<commit_before><commit_msg>Added file to get all forms for given UserID<commit_after><?php
$db = new mysqli('localhost', 'appd2dpr_php', '9&3mPMjCJM8+uKy6o', 'appd2dpr_mobileApp');


$query = "SELECT formID FROM users WHERE userID=444333";


if(!$result = $db->query($query)){
    die('Error: ' . $db->error . ']');
}

$allArray = array();
while($row = $result->fetch_assoc()){
	$formArray = array($row['formID']);
	$query2 = "SELECT * FROM forms WHERE formID=". (string)$row['formID'];
	if(!$result2 = $db->query($query2)){
   		 die('Error: ' . $db->error . ']');
	}
	while($row2 = $result2->fetch_assoc()){
		array_push($formArray, $row2['frmName']);
	}
    array_push($allArray, $formArray);
}
echo json_encode($allArray);
?>
{'fraction_non_alphanumeric': 0.2194787379972565, 'fraction_numerical': 0.024691358024691357, 'mean_word_length': 5.517857142857143, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4472411', 'n_tokens_mistral': 290, 'n_tokens_neox': 278, 'n_words': 51}