Jump to content

PHP list code error


rilana

Recommended Posts

I made a website with a tool to add and edit job lists. Now I have the following problem.

Once the list gets to big to show it on one page, it creates a button that says next page.

It works fine when the list concludes all the jobs, but when it was selected to only

show a certain kind of jobs, then it jumps to the unselected list after clicking on next page.

 

http://www.smartpersonal.ch/purple/jobseekers/JobSearch.php as you can see on the website if you

choose Bereiche: Technische Berufe....

 

the code looks like this

 

if ($rr2 <= $ByPage && $Start == '0')

{

 

}

 

if ( $Start > 0 )

{

$nom1 = $Start - $ByPage;

echo "<td align=left class=inhalt><a class=TN href=\"JobSearch3.php?sm=$sm&position=$position&region=$region&bereich=$bereich&anstellung=$anstellung&datum=$datum&target_company=$target_company&relocate=$relocate&country=$country&city=$city&kw=$kw&Start=$nom1\">zurück</a></td>";

}

 

if ($rr2 > $Start + $ByPage  || ($Start == 0 && $rr2 > $ByPage))

{

$nom = $Start + $ByPage;

echo "<td align=right class=inhalt><a class=TN href=\"JobSearch3.php?sm=$sm&position=$position&position=$position&region=$region&bereich=$bereich&anstellung=$anstellung&datum=$datum&target_company=$target_company&relocate=$relocate&country=$country&city=$city&kw=$kw&Start=$nom\">nächste Seite</a></td>";

}

 

bereich would be the variable..

 

Would be cool if anyone could see the mistake, because I cant seem to figure it out!

thanks a lot guys!!!

Link to comment
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.