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
| <?php
//******récupération du nomDoc_fr avec la variable $_GET[nomDoc_fr'] ************
$nomDoc_fr = mysql_real_escape_string($_GET['nomDoc_fr']);
// ******* affichage nomDoc_fr, datCopyright, nomRea, nomAut, nomChore ********
$req = "SELECT idDoc, nomDoc_fr, datCopyright, nomRea, nomAut, nomChore
FROM documentaire
WHERE nomDoc_fr='$nomDoc_fr'";
$result = mysql_query($req);
if ( $result === FALSE ) {
echo 'DEBUG : ', $req, ' // ', mysql_error( ) ;
// Arrêter traitement, rediriger, etc.
}
while($rows = mysql_fetch_assoc($result)){
echo 'la la la';
$nomDoc_fr = $rows['nomDoc_fr'];
$datCopyright = $rows['datCopyright'];
$nomRea = $rows['nomRea'];
$nomAut = $rows['nomAut'];
$nomChore = $rows['nomChore'];
echo '<p class="titrePage">'.fullUpper($rows['nomDoc_fr']).'</p> COPYRIGHT : '.$rows['datCopyright'].'</br> RÉALISATION : '.$rows['nomRea'].'<br/> AUTEURS : '.$rows['nomAut'].'<br/>';
if ($nomChore != NULL) {
echo 'CHORÉGRAPHE : '.$rows['nomChore'].'<br/>';
}
}
?> |
Partager