Jump to content

pavlos1982

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pavlos1982's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. tht is the function place inside my div header "<?php if(is_page('peopleculture')) : ?>class="peoplecultureclass"<?php else : ?>class="normalclass"<?php endif;?>>" that is the function that change the pictures , when people click on other pages within my website im just wondering how do i add more code to this function to do other page like about us, contact pages so when people click on these pages the banner can also change, do let me know if you need more info, and thanks for the quick reply hopefully by the end of today ill find a solution, im new to php
  2. PHP <div id="header" <?php if(is_page('About')) : ?>class="aboutpageclass"<?php else : ?>class="normalclass"<?php endif;?>> Css .aboutpageclass { background-image:someimage.jpg; } .normalclass { background-image:anotherimage.jpg } the thing is it work perfectly one problem im trying to add another picture to my other pages using this code in my header sections , if anybody could help me out on the php script what to write to extend the code for me to add more picture to other pages , thank in advanced
  3. PHP <div id="header" <?php if(is_page('About')) : ?>class="aboutpageclass"<?php else : ?>class="normalclass"<?php endif;?>> Css .aboutpageclass { background-image:someimage.jpg; } .normalclass { background-image:anotherimage.jpg } the thing is it work perfectly one problem im trying to add another picture to my other pages using this code in my header sections , if anybody could help me out on the php script what to write to extend the code for me to add more picture to other pages , thank in advanced
  4. thank you very much for the quick reply i tried it did nt work i think maybe im doing something wrong im very new to php , if its posible if i send you one of my page of my website then you can see the codes and see where im going wrong if i can see one example working then ill probably can do the rest ??? if yes please send me your email address or msn or yahoo , thank you for your help i appreciate it
  5. hello my name is paul and i have a small personal website www.maheseychelles.co.uk which i have turn into php but the only problem is that my url is http://seychelles.hostosaur.com/?pg=home but i want it to be http://seychelles.hostosaur.com/home or www.maheseychelles.co.uk/home instead, and this is my content management code i used <?php if (isset($_GET['pg']) && $_GET['pg'] != "") { $pg = $_GET['pg']; if (file_exists('pages/'.$pg.'.php')) { @include ('pages/'.$pg.'.php'); } elseif (!file_exists('pages/'.$pg.'.php')) { echo 'Page you are requesting doesn´t exist'; } } else { @include ('pages/home.php'); } ?> im just wondering what do i change to make it into the url i want with my page name infront of my domain name, thanks in advanced
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.