Initialisation... |
Etat de la requête |
Affichage des résultats |
$ficname | "; //création de la requête pour les auteurs $myqueryauthor="SELECT * FROM anauthor aut,anauthor_fanfic a_f WHERE a_f.numfanfic=$numfanfic AND a_f.numauthor=aut.numauthor"; $queryauthorresult=mysql_query($myqueryauthor) or die(""; while ($i2 < $numrowsauth) { $name=mysql_result($queryauthorresult,$i2,"aut.name"); $email=mysql_result($queryauthorresult,$i2,"aut.email"); if ($email != "") { print "$name |
";
if($numchap==0)
{
if ($size != 0)
{
Print "Lire ($size Ko)";
}
else
{
Print "Lire";
}
if ($chapdate != "0000-00-00")
{
Print " - $chapdate";
}
}
else
{
if ($size != 0)
{
Print "$chaplabel ($size Ko)";
}
else
{
Print "$chaplabel";
}
if ($chapdate != "0000-00-00")
{
Print " - $chapdate "; } $i2++; while ($i2 < $numrowschap) { $size=mysql_result($querychapterresult,$i2,"chp.size"); $numchap=mysql_result($querychapterresult,$i2,"chp.numchap"); $chapurl=mysql_result($querychapterresult,$i2,"chp.fileurl"); $chaplabel=mysql_result($querychapterresult,$i2,"chp.label"); $chapdate=mysql_result($querychapterresult,$i2,"chp.chapdate"); if ($size != 0) { Print " $chaplabel ($size Ko)"; } else { Print " $chaplabel"; } if ($chapdate != "0000-00-00") { Print " - $chapdate "; } $i2++; } } Print " | ";
if($genre != "")
{
print "Genre: $genre";
}
Print " \"$descfrench\""; print " |
$homepage"; } print " |