1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I dont have idea how to solve title

Discussion in 'PHP & Perl' started by ManuelF, Oct 23, 2009.

  1. ManuelF

    ManuelF Newbie

    Joined:
    Jun 5, 2009
    Messages:
    31
    Likes Received:
    6
    Hello,

    Can someoe help me, I have the script but there is a problem with duplicate title in my webmasters tools section.

    In the catgories on site I get everytime the same title for page 1,2,3,4...


    Here are a few lines of the browse.php for category page.

    I would like to include $sitename2 = $categoryname + (page number, depends on which page you are currently in.)

    This is for me really hard I tried something but I dont understund the code.


    Code:
        $sitename2 =  "  ".$categoryname;
        $sitedescription = $categorydescription;
        $sitekeywords = $sitekeywords.", ".$categorykeywords;
    
    Is here anyone who can help me with a file.

    Thank you for your time.
     
    Last edited: Oct 23, 2009
  2. XoC--

    XoC-- Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 5, 2009
    Messages:
    211
    Likes Received:
    113
    It's a bit hard to answer you without looking at more of the code specifically how it stores the page number it's on.
    If I understand what you want correctly it should be as easy as doing
    Code:
    $sitename2 = " " . $categoryname . $page
    Would you be able to share more of the code?
     
  3. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    Probably you have a parameter with the number of the page. Like /yourfile.php?[COLOR=Red]page[/COLO...pt it to your script. I think it 's not hard.