Results 1 to 2 of 2

Thread: Next month...

  1. #1
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Next month...

    I have:

    PHP Code:
    <p>
                  <a href="agend_desporto.php?modifier=-1"> Anterior </a> | 
                  <a href="agend_desporto.php?modifier=0"> Actual </a> 
                  <? if( ($arrl["Bmonth"] + 1) != NULL) {?>
                          | <a href="agend_desporto.php?modifier=1"> Seguinte </a>
                  <? } else { ?>
                           <a></a>
                  <? ?>
              </p>
    I have problems with this code. My point is if the next month not exists in the DB in the field Bmonth the word "Seguinte" doesn't appear. Can you help me??

  2. #2
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How can verify if exist the next month in a field?? The code above is correct?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •