Jump to content

PHP Include Help


Hirikan

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.