Jump to content

Archived

This topic is now archived and is closed to further replies.

Hirikan

PHP Include Help

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites
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.ifastnet.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 :)

Share this post


Link to post
Share on other sites
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.net/tutorials/php_mysql/easy_navigation.php

hope that helps  ;D

Share this post


Link to post
Share on other sites

×

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.