I have this :
printf("<TR>");
printf("<TD><B>$titre[1]</B></TD>
<TD><B>$titre[2]</B></TD>
<TD><B>$titre[3]</B></TD>
<TD><B>$titre[4]</B></TD>
<TD><B>Modifier</B></TD></TR>\n");
while (($row = mysql_fetch_object($result))){
$affiche = "<TR";
for ($i = 0; $i <= $titre[0]; $i ++)
{
$affiche .= ("<TD>". $row->$table[$i] . "</TD>");
}
$affiche .= "<TD><A HREF=modify.php?uin=";
$affiche .= $row->$table[1]; // id unique de l'enregistrement
$affiche .= "&nom=";
$affiche .= $nom;
$affiche .= "&champ=";
$affiche .= $table[1];
$affiche .= (" <center><I>Modifier</I></center></A> </TD>");
echo ($affiche);
echo("</TR>");
}
printf("</TABLE>\n");
my problem is :
When there is no users with the selected empno (employee number) I still have the header output :
printf("<TD><B>$titre[1]</B></TD>
<TD><B>$titre[2]</B></TD>
<TD><B>$titre[3]</B></TD>
<TD><B>$titre[4]</B></TD>
<TD><B>Modifier</B></TD></TR>\n");
Is there a way that i can have no out put at all???