Jump to content

change 1 piece of page with numbers


wezze

Recommended Posts

hey i got a little question,

ive got a site where i got this the main section of my page.

<section id="main" class="clearfix">
	<section id="content">
                    <article><?php include("includes/article1_nl.php"); ?></article>
               </section>

what i would like to achieve is when putting numbers under this article like <1-2-...etc> and pressing nr2 article 2 loads in the place of article 1 without

having to make a second page only a another include page.

Is this possible?

 

thx

Link to comment
https://forums.phpfreaks.com/topic/263953-change-1-piece-of-page-with-numbers/
Share on other sites

ok cool but is that the only piece of code ill need? I had a quick look on google (now i know what to look for) and saw they use

<head><script src="http://code.jquery.com/jquery-latest.js"></script></head>

will i need to put this in too?

 

<script>
  $("section#content article").load("includes/article1_nl2.php");
</script>

 

thx

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.