aeav
02-15-2005, 09:53 AM
Well I have a script calendar, it print all days of the week but I want to put bold where there are data, like it:
day 5 [consult database] - if donŽt have any data it donŽt print the bold, if yes it print.
Can someone help-me?
the part of code is it:
while (checkdate($mes, $dia, $ano)){
if ($testa == false)
print( '<tr>' );
/*
Print the days
*/
while ($dia_semana < 7 AND checkdate($mes, $dia, $ano)){
print( '<td><b><a href="abre.php?dia='.$dia.'&mes='.$mes.'&ano='.$ano.'">'.$dia.'</a></b></td>' );
$dia++;
$dia_semana++;
} // while 2
$dia_semana = 0;
$testa = false;
print( '</tr>' );
} // while
print( '</table>' );
day 5 [consult database] - if donŽt have any data it donŽt print the bold, if yes it print.
Can someone help-me?
the part of code is it:
while (checkdate($mes, $dia, $ano)){
if ($testa == false)
print( '<tr>' );
/*
Print the days
*/
while ($dia_semana < 7 AND checkdate($mes, $dia, $ano)){
print( '<td><b><a href="abre.php?dia='.$dia.'&mes='.$mes.'&ano='.$ano.'">'.$dia.'</a></b></td>' );
$dia++;
$dia_semana++;
} // while 2
$dia_semana = 0;
$testa = false;
print( '</tr>' );
} // while
print( '</table>' );