<commit_before><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<link rel="stylesheet" href="style.css" />
		<title>PopcornTeque</title>
	</head>

	<body>
	<?php
		include 'header.php'; 

		ini_set('dispay_errors', 'On');

		$utilisateur_id = $_GET['utilisateur_id'];

		try
		{
			$bdd = new PDO('mysql:host=localhost;dbname=PopCornTheque', 'poppoppop', 'nnd47D2JQWAzh97H');
		}
		catch (Exception $e)
		{
			die('Erreur : ' . $e->getMessage());
		}

		$req = $bdd->prepare('SELECT F.FILM_ID, SUP_NOM, FILM_AFFICHE, FILM_TITRE FROM SUPPORT AS S INNER JOIN FILM AS F ON F.FILM_ID = S.FILM_ID WHERE UTI_ID = ?');
		$req->execute(array($utilisateur_id));

		echo "<table>\n<caption>Liste des support de ", htmlspecialchars($utilisateur_id),"</caption>\n";
		echo "<thead>\n<tr>\n<th>Id du film\n<th>Titre\n<th>Nom du support\n<th>\n";
		echo "<tbody>\n";
		while($donnees = $req->fetch()){
			echo "<tr>\n<td>",$donnees['FILM_ID'],'\n<td><a href="detailsFilm.php?idfilm=', htmlspecialchars($donnees['FILM_ID']), '">', $donnees['FILM_TITRE'],"</a>\n<td>",htmlspecialchars($donnees['SUP_NOM']),"\n";
			echo '<td><img src="', $donnees['FILM_AFFICHE'], '" width=40% height=40%>';
		}
		echo"</table>";

		$req->closeCursor();
	?>
	</body>
</html><commit_msg>tentative correction problème liste film user<commit_after><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<link rel="stylesheet" href="style.css" />
		<title>PopcornTeque</title>
	</head>

	<body>
	<?php
		include 'header.php'; 

		ini_set('dispay_errors', 'On');

		$utilisateur_id = $_GET['utilisateur_id'];

		try
		{
			$bdd = new PDO('mysql:host=localhost;dbname=PopCornTheque', 'poppoppop', 'nnd47D2JQWAzh97H');
		}
		catch (Exception $e)
		{
			die('Erreur : ' . $e->getMessage());
		}

		$req = $bdd->prepare('SELECT F.FILM_ID, SUP_NOM, FILM_AFFICHE, FILM_TITRE FROM SUPPORT AS S INNER JOIN FILM AS F ON F.FILM_ID = S.FILM_ID WHERE UTI_ID = ?');
		$req->execute(array($utilisateur_id));

		echo "<table>\n<caption>Liste des support de ", htmlspecialchars($utilisateur_id),"</caption>\n";
		echo "<thead>\n<tr>\n<th>Id du film\n<th>Titre\n<th>Nom du support\n<th>\n";
		echo "<tbody>\n";
		while($donnees = $req->fetch()){
			echo "<tr>\n<td>",$donnees['FILM_ID'],"\n<td>",'<a href="detailsFilm.php?idfilm=', htmlspecialchars($donnees['FILM_ID']), '">', $donnees['FILM_TITRE'],"</a>\n<td>",htmlspecialchars($donnees['SUP_NOM']),"\n";
			echo '<td><img src="', $donnees['FILM_AFFICHE'], '" width=40% height=40%>';
		}
		echo"</table>";

		$req->closeCursor();
	?>
	</body>
</html>
{'fraction_non_alphanumeric': 0.22668747561451424, 'fraction_numerical': 0.007803355442840421, 'mean_word_length': 5.163461538461538, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 75, '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': '3589121', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1073, 'n_words': 168}