Topic: << Previous Next >> Pagination Problem (2.0.2+last update from GitHub)
Hi all..
I try to include more then once code in same Index.php file.
Here is my code just for test to be clear:
index.php
<!DOCTYPE html><!-- HTML5 -->
<html lang="bg-BG" dir="ltr">
<head>
<title>News Test</title>
<meta charset="utf-8" />
</head>
<body>
<div>
<div>
<?PHP
//$static = TRUE;
$template = "Temp1";
$category = "1";
$number = 2;
include("../page/news/show_news.php");
?>
</div>
<div>
<?PHP
//$static = TRUE;
$template = "Temp2";
$category = "2";
$number = 2;
include("../page/news/show_news.php");
?>
</div>
<div>
<?PHP
//$static = TRUE;
$template = "Temp3";
$category = "3";
$number = 2;
include("../page/news/show_news.php");
?>
</div>
</div>
</body>
</html>
There are 3 diferent templetes and 3 diferent categories.
Here is how this look like:
And when click Next >> happens this:
Show 1st news in all includes.
What I want to do is when click next>> or << Previous in 1st include to change information only there.
<?PHP
//$static = TRUE;
$template = "Temp1";
$category = "1";
$number = 2;
include("../page/news/show_news.php");
?>
What is idea of this code. My idea is when i have 3 difrent news includet in one page to show in independent place.
When i click next or pr.. to change information only in first include and all other to stays the same.
I update cutenews to a last version but nothing.
I play with this //$static = TRUE; but same result.
I search in all forum posts but i cant find answer.
Sorry for my question but i'm new in php and cutenews.
Please I hope somone can help me