SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Dec 2005
    Posts
    515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to display this on another page?

    This is the index.php

    PHP Code:
    <?php $page_title="Sparkle and Glitter"$nav="glitter"$cat="special"; include('../../incs/header.php'); ?>

    <?php
        $number 
    39;
        
    $category '101';
        
    //$sort = array('views', 'DES');
        
    include $cutepath.'/show_news.php';
    ?>
    This is the header.php page

    PHP Code:
    <title><?php if ( $number == 39 ) {echo "Viewing 39 ";} else {echo "";} ?><?php if ( $page_title == Sets ) {echo "Cursor";} else {echo "";} ?> <?php echo $page_title?> <?php if ( $page_title == Sets ) {echo "";} else {echo "Cursors";} ?></title>
    I'm trying to get the title to say Viewing 39 when the $number is 39. But when I do it, it doesn't work. It shows it on page that has $number = 1 or 2 or 3 or whatever. Even though I just want it to show when it's 39.
    FlyffWorld.com - Online Gaming MMORPG
    AdTalks.com - Publisher/Advertising Network Review
    Cursors - Cursors-4U.com

  2. #2
    SitePoint Wizard bronze trophy Immerse's Avatar
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    1,661
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    You'll need to define $number=39 before you include the header.php file.


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
  •