Jump to content


Photo

PHP Include Help


  • Please log in to reply
4 replies to this topic

#1 Hirikan

Hirikan
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 14 September 2006 - 11:03 PM

Hi, i have a small website.  I am running the php programme Cutenews. 
I have this small piece of code in my page to show the news:

<?PHP
$number = "5";
include("cutenews/show_news.php");
?>

What i want is for the links on my main page, when clicked, the page they click shows up where the show_news.php page was. 

Thanks :)

#2 1042

1042
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 14 September 2006 - 11:09 PM

can you explain a little more in detail?

#3 Hirikan

Hirikan
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 14 September 2006 - 11:17 PM

Like using Frames in HTML.  But instead using php. 
I want my links to link to a certain area of my website.  The include.  I think i would have to change the current code for the include i have at the moment, but i have done this before i have just forgoten :(

here is the website (dont laugh)
http://stbernards.if...t.com/index.php

At the moment only the main and squad links are active, but i would like the other links pages to go where the news is on the main page when people click the link.
thanks for quick reply :)

#4 Hirikan

Hirikan
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 14 September 2006 - 11:49 PM

bump

#5 1042

1042
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 15 September 2006 - 08:41 PM

Hi Sorry for the late reply, ok, i know what you mean now, i found this nice easy to follow tutorial that will show you how to do this in a snap follow the below link:

http://www.netcode.n..._navigation.php

hope that helps  ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users