Jump to content

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

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.