A little help with php source. All help appreciated.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
baks
Forum Newbie
Posts: 3
Joined: Sat May 15, 2004 3:46 am

A little help with php source. All help appreciated.

Post by baks »

I'm using CuteNews on my site. And have a problem with previous page/next page buttons.

I looks like this: i have two categories of news 1-Important(only 3 one the site, at the top) and 2-news(many on the site, below important) and when i added
$category = "1";
include("$path/show_news.php");

$category = "2";
$number = "5";
include("$path/show_news.php");
all news are ok but when i click "next page" important new disappear and all i see is are 5 news. What should i add to see Importants on every "next page" or "previous page" i click, too ??

all help appreciated ;)
User avatar
launchcode
Forum Contributor
Posts: 401
Joined: Tue May 11, 2004 7:32 pm
Location: UK
Contact:

Post by launchcode »

Sorry but absolutely nothing in the code you posted will allow us to tell you why the "next page" is hiding the important news :) I would imagine you don't have enough "important" articles to span 2 pages, right?
User avatar
baks
Forum Newbie
Posts: 3
Joined: Sat May 15, 2004 3:46 am

Post by baks »

problem is solved, thnx anyway :D
Post Reply