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
https://forums.phpfreaks.com/topic/20797-php-include-help/
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
https://forums.phpfreaks.com/topic/20797-php-include-help/#findComment-92062
Share on other sites

Archived

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

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