par
psychotom » 27 janv. 2006, 01:41
Oublié de donner le contenu de mon fichier qui est incriminé :
<?
session_start();
if (!session_is_registered('login')) {
// header("Location:index.php");
}
include "./configuration.php";
echo "<html>";
echo "<head>";
echo "<script type=\"text/javascript\">";
echo "function printpage() {";
echo "window.print()";
echo "}";
echo "</script>";
echo "<title>MYCODOC</title>";
echo "<link rel='stylesheet' href='style.css'>";
echo "<style TYPE=\"text/css\">
<!--
A { color:#17501F; text-decoration:none; }
A:hover { color:#910404; text-decoration:none; }
body {
scrollbar-3dlight-color : #8DA991;
scrollbar-arrow-color : #17501F;
scrollbar-base-color : #8DA991;
scrollbar-face-color : #8DA991;
scrollbar-highlight-color : #FFFFFF;
scrollbar-shadow-color : #FFFFFF;
scrollbar-track-color :#FFFFFF;
}
-->
</style>";
echo "</head>";
//echo "</html>";
//echo "</body>";
$indexligne=0;
//print("valeur de genre :".$_GET['genre']."<br>");
//print("valeur de espece :".$_GET['espece']."<br>");
//echo "<BODY TEXT='#000000' BGCOLOR='#dedede' LINK='#000000' VLINK='#000000' ALINK='#F70404'>";
//<table border=\"0\">";
echo "<td align=right><form><input type=button value=\"Imprimer cette page\" onClick=\"printpage()\"></form></td>";
echo "<br />";echo "<br />";
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table2, biblio, livres
WHERE $table2.genre = '$_GET[genre]' and $table2.espece = '$_GET[espece]' AND $table2.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
//print($query);
//print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table2\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
$indexligne = $indexligne + 1;
//on affiche les résultats
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE,livres.ANNEE FROM $table3, biblio, livres
WHERE $table3.genre = '$_GET[genre]' and $table3.espece = '$_GET[espece]' AND $table3.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table3\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table4, biblio, livres
WHERE $table4.genre = '$_GET[genre]' and $table4.espece = '$_GET[espece]' AND $table4.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table4\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table5, biblio, livres
WHERE $table5.genre = '$_GET[genre]' and $table5.espece = '$_GET[espece]' AND $table5.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table5\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</b></td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table6, biblio, livres
WHERE $table6.genre = '$_GET[genre]' and $table6.espece = '$_GET[espece]' AND $table6.numero = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table6\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table8, biblio, livres
WHERE $table8.genre = '$_GET[genre]' and $table8.espece = '$_GET[espece]' AND $table8.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table8\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
mysql_close ();
?>
Oublié de donner le contenu de mon fichier qui est incriminé :
[php]<?
session_start();
if (!session_is_registered('login')) {
// header("Location:index.php");
}
include "./configuration.php";
echo "<html>";
echo "<head>";
echo "<script type=\"text/javascript\">";
echo "function printpage() {";
echo "window.print()";
echo "}";
echo "</script>";
echo "<title>MYCODOC</title>";
echo "<link rel='stylesheet' href='style.css'>";
echo "<style TYPE=\"text/css\">
<!--
A { color:#17501F; text-decoration:none; }
A:hover { color:#910404; text-decoration:none; }
body {
scrollbar-3dlight-color : #8DA991;
scrollbar-arrow-color : #17501F;
scrollbar-base-color : #8DA991;
scrollbar-face-color : #8DA991;
scrollbar-highlight-color : #FFFFFF;
scrollbar-shadow-color : #FFFFFF;
scrollbar-track-color :#FFFFFF;
}
-->
</style>";
echo "</head>";
//echo "</html>";
//echo "</body>";
$indexligne=0;
//print("valeur de genre :".$_GET['genre']."<br>");
//print("valeur de espece :".$_GET['espece']."<br>");
//echo "<BODY TEXT='#000000' BGCOLOR='#dedede' LINK='#000000' VLINK='#000000' ALINK='#F70404'>";
//<table border=\"0\">";
echo "<td align=right><form><input type=button value=\"Imprimer cette page\" onClick=\"printpage()\"></form></td>";
echo "<br />";echo "<br />";
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table2, biblio, livres
WHERE $table2.genre = '$_GET[genre]' and $table2.espece = '$_GET[espece]' AND $table2.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
//print($query);
//print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table2\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
$indexligne = $indexligne + 1;
//on affiche les résultats
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE,livres.ANNEE FROM $table3, biblio, livres
WHERE $table3.genre = '$_GET[genre]' and $table3.espece = '$_GET[espece]' AND $table3.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table3\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table4, biblio, livres
WHERE $table4.genre = '$_GET[genre]' and $table4.espece = '$_GET[espece]' AND $table4.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table4\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table5, biblio, livres
WHERE $table5.genre = '$_GET[genre]' and $table5.espece = '$_GET[espece]' AND $table5.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table5\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</b></td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table6, biblio, livres
WHERE $table6.genre = '$_GET[genre]' and $table6.espece = '$_GET[espece]' AND $table6.numero = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table6\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
if ($_GET['genre'] != "") {
$query = mysql_query("SELECT DISTINCT TITRE, livres.AUTEUR, TOME, FASCICULE, PAGE, livres.ANNEE FROM $table8, biblio, livres
WHERE $table8.genre = '$_GET[genre]' and $table8.espece = '$_GET[espece]' AND $table8.numtax = biblio.taxon
AND biblio.codlivre = livres.codlivre");
$bool = 'true';
$num_rows = mysql_num_rows($query);
// print($query);
// print($num_rows);
if ($num_rows == '0'){
// echo "<td align=center><b>LA TABLE \"$table8\" : </b></td>";echo "<br />";
// echo "<td align=center><b>aucun enregistrement trouvé</b></td>";
};
while ($result = mysql_fetch_array($query))
{
//on affiche les résultats
$indexligne = $indexligne + 1 ;
echo "<td align=center><b><font color=red> $indexligne . </font> </td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">\n";
echo "<td align=center>".$result['TITRE']."</td>";
echo "</td>";
echo "</b></tr>\n\n";
// if ($result['TITRE'] != " ") print($result['TITRE']); else print("vide");print("-");
// echo "<td align=center><b>Auteur : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['AUTEUR']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['PAGE'] != " ") print($result['PAGE']); else print("vide");print("-");
// echo "<td align=center><b>Annee : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['ANNEE']."</td>";
echo "</td>";
echo "</tr>";
echo "<br />";
// if ($result['AUTEUR'] != " ") print($result['AUTEUR']); else print("vide");print("-");
echo "<td align=center><b>Tome : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['TOME']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['TOME'] != " ") print($result['TOME']); else print("vide");print("-");
echo "<td align=center><b>Fasicule : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['FASCICULE']."</td>";
echo "</td>";
echo "</tr>\n\n";
// if ($result['FASCICULE'] != " ") print($result['FASCICULE']); else print("vide");print("-");
echo "<td align=center><b>Page : </b></td>";
echo "<tr>\n";
echo "<td style=\"width: 20%\">";
echo "<td align=center>".$result['PAGE']."</td>";
echo "</td>";
echo "</tr>\n\n";
echo "<br />";
echo "<br />";
// if ($result['ANNEE'] != " ") print($result['ANNEE']);echo "<br />";
};
mysql_free_result($query);
echo "<br />";echo "<br />";
};
mysql_close ();
?>[/php]