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
https://forums.phpfreaks.com/topic/76101-php-list-code-error/
Share on other sites

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.