I have menu paging problem

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
gpong
Forum Newbie
Posts: 16
Joined: Sun Aug 06, 2006 8:49 am

I have menu paging problem

Post by gpong »

*** PLEASE USE THE

Code: Select all

TAG WHEN POSTING CODE ***[/color]

this is my code:

Code: Select all

<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
	<?
	
	for($i=($nowpage+1);$i<=$pagetotal;$i++){
	
	?>
      <option value="view_detail.php?question_id=<? echo $id; ?>&&page=<? echo ($i-1); ?>"><? echo $i; ?></option>
    <?
	}
	?>
and the problem is when i click the page number at the menu, the previous page number is disappear. ex: if I click page 2, page 1 will disappear.
can everyone help me fix the code please?? :)
Post Reply