If I have:
and I want if there aren't no events in the next month the link not appears. What should I do in the next code?PHP Code:...
$sql = "select * from agenda_geral where agenda='desporto' and Bmonth = (month(now())+1) + ".$modifier." and area_ID = 1 order by Bday" ;
$queryl = query($sql) or die ("Query failed: " . mysql_error() . " Actual query: " . $sql);
$contal = mysql_num_rows($queryl);
for ($j=0; $j<1;$j++)
{
$arrl = mysql_fetch_array($queryl);...
PHP Code:<? if( $arrl["Bmonth"] == NULL) {?>
<a></a>
<? } else { ?>
| <a href="agend_desporto.php?modifier=1"> Seguinte </a>
<? } ?>



Reply With Quote

Bookmarks