Bonjour tout le monde,

Il m'arrive quelque chose de bizzare que je n'ai jamais rencontré en 18 mois de développements PHP.

http://164.15.111.52:82/MDS/Resume.php



Les phrases sont tronquées dès qu'il y a un accent quelconque (à, é, è...)

Voici mon code PHP, sauriez-vous me dire ce qu'il se passe svp ? :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link rel="stylesheet" href="CSS/resume.css" type="text/css" media="all" />
		<script type="text/javascript" src="jquery/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="jquery/jquery_show_hide_div/show_hide.js"></script>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>MDS : Résumé</title>
	</head>
 
	<body>
 
 
		<?php
			include('connexion.php');
			include('Fonctions/Modificaitons_accents.php');
		?>
 
			<?php 
				$sql_et = "SELECT * FROM etudiants";
				$query_et = mysql_query($sql_et);
 
				while($row_et = mysql_fetch_array($query_et))
				{
					echo '<div class="info_et">';
					echo '<hr />';
					echo $row_et['Nom'].' '. $row_et['Prenom']. ' ' . $row_et['Matricule'] . '<img src="images/down-icon.png" alt="Cacher" width="32" height="32" style="display:inline"" />';
					echo '<hr />';
			?>	
			<div id="Fieldset">
				<?php
 
				//echo '<br />';
 
				$sql_fieldset = "SELECT * from noms_fieldset";
				$query_fieldset = mysql_query($sql_fieldset);
 
				while($row_fieldset = mysql_fetch_array($query_fieldset))
				{
					//if($row_fieldset['Colonnes_ou_lignes'] == "lignes")
					//{
						echo '<div class="fieldset">'.JsToDb($row_fieldset['nom_Fieldset']).'</div>';
						//echo '<br />';
 
						$sql_rubriques = "SELECT * FROM noms_rubriques WHERE ID_fieldset = " .$row_fieldset['ID'];
						$query_rubriques = mysql_query($sql_rubriques);
						echo '<table border="1" class="tabl">';
						while($row_rubriques = mysql_fetch_array($query_rubriques))
						{
							echo '<tr>';
								echo '<td>';
									echo JsToDb($row_rubriques['nom_rubrique']);
								echo '</td>';
								echo '<td>';
								  $sql_cote = "SELECT cote FROM cotations WHERE Matricule = '".$row_et['Matricule']."' AND Present_ou_pas = '".$row_fieldset['ID'].'_'.$row_rubriques['ID']."'";
								  //echo $sql_cote;
								  $query_cote = mysql_query($sql_cote);
								  $nombre_res = mysql_num_rows($query_cote);
 
								  //echo '$nombre_res vaut '. $nombre_res;
 
								  //si le MDS n'a pas encore coché un bouton raido dans la ligne, rien ne s'affiche
 
									  $res_cote = mysql_fetch_array($query_cote);
									 if($nombre_res == 0)
									 {
										echo '</td>';
										echo '</tr>';
									 } 
									 else
									 {
										  $sql_choix_rubrique = "SELECT noms_gradations FROM gradations WHERE ID_rubrique = ".$row_fieldset['ID']." AND POINTS = ".$res_cote['cote'];
										  //echo $sql_choix_rubrique;
										  $query_choix_rubrique = mysql_query($sql_choix_rubrique);
										  $row_noms_choix_rubriques = mysql_fetch_array($query_choix_rubrique);
 
										  echo $row_noms_choix_rubriques['noms_gradations'];
 
										echo '</td>';
										echo '<td>';
											if($nombre_res > 0) echo $res_cote['cote'];
										echo '</td>';
 
										echo '</tr>';
									}
							//echo '<br />';	
						}
						echo '</table>';
					}
					echo '</div>';
				//}
			}
		?> 
 
			</div>
		</div>
</body>
</html>
Merci d'avance.

beegees