Choose parts of a php file

Discussion in 'PHP' started by romeoz, May 4, 2011.

  1. #1
    I have a newsupdates.php that I put all my news. From there I want to inlcude that into my news.php file but on my index.php file I want to inlcude that but only part of it like the current month. Is there a code to write to look for current month news out if it all and display on the index.php while news.php shows it all? thanks
     
    romeoz, May 4, 2011 IP
  2. romeoz

    romeoz Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    figured it out..I used <?php
    $showfullcontent = false;
    include 'newsupdates.php';
    ?>
     
    romeoz, May 4, 2011 IP