Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 15:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



(Hilfe) So ne art pagination?

Discussion on (Hilfe) So ne art pagination? within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
ᴇQᴜᴀʟ's Avatar
 
elite*gold: 0
Join Date: Sep 2017
Posts: 14
Received Thanks: 9
(Hilfe) So ne art pagination?

Guten Tag.

Ich bräuchte ein wenig Hilfe.
Habe hier so eine leiste (Siehe unten.)

Die zahlen sind "links" (a href=int), nun möchte ich wenn ich auf 10 Klicke
das sich die Zahlen um 1 verringern und wenn ich auf 19 Klicke sich die zahlen um 1 erhöhen (so ne art pagination).

Wenn ich 11-18 Klicke sollen sich die zahlen nicht höher oder kleiner werden.

Wie stelle ich das am besten an.

Input -> index.php?level=1

Code:
	for ($iInx = 10; $iInx < 19; $iInx++)
	{
		echo('<li><a href="?level='.$iInx.'">'.$iInx.'</a></li>');
	}



LG
ᴇQᴜᴀʟ is offline  
Old 01/27/2019, 22:48   #2


 
False's Avatar
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Apr 2011
Posts: 11,115
Received Thanks: 2,436
Quote:
Originally Posted by ᴇQᴜᴀʟ View Post
Guten Tag.

Ich bräuchte ein wenig Hilfe.
Habe hier so eine leiste (Siehe unten.)

Die zahlen sind "links" (a href=int), nun möchte ich wenn ich auf 10 Klicke
das sich die Zahlen um 1 verringern und wenn ich auf 19 Klicke sich die zahlen um 1 erhöhen (so ne art pagination).

Wenn ich 11-18 Klicke sollen sich die zahlen nicht höher oder kleiner werden.

Wie stelle ich das am besten an.

Input -> index.php?level=1

Code:
	for ($iInx = 10; $iInx < 19; $iInx++)
	{
		echo('<li><a href="?level='.$iInx.'">'.$iInx.'</a></li>');
	}



LG
Du prüfst in der for Schleife einfach ob es die erste Zahl ist (in deinem Beispiel 10) oder ob es die letzt Zahl ist, trifft eins von beiden zu hängst du einfach ein parameter mit hinten dran z.B. action=forward und action=backward somit hättest du dann z.B. ?level=10&action=forward.

Nun kannst du im PHP wenn einer der beiden Parameter gesetzt ist einfach den Start anpassen. Wurde keine action parameter übergeben gibst du es wie gewohnt aus.
False is offline  
Reply


Similar Threads Similar Threads
[PHP] Pagination - wie Daten ausgeben?
02/17/2016 - Web Development - 2 Replies
Hallo Epvp'ler. Ich stehe gerade extrem auf dem Schlauch. Ich würde gerne Pagination von Bootstrap nutzen. <nav> <ul class="pagination"> <li> <a href="#" aria-label="Previous"> <span aria-hidden="true">&laquo;</sp an> </a> </li> <li><a href="#">1</a></li> <li><a href="#">2</a></li>
Retrotiger's Art Shoppe - CHEAP art is not GOOD | GOOD art is not CHEAP
10/30/2013 - Artist Trading - 14 Replies
http://i.minus.com/icLs4CDXyTcPC.png http://i.imgur.com/xXIIE9U.png
*NEW CODING ART!!!..........:::::~WhiteLight D3D~:::::..........*NEW CODING ART!!!
09/21/2010 - WarRock Hacks, Bots, Cheats & Exploits - 25 Replies
http://250kb.de/u/100911/p/m4buevNCZhoQ.PNG Download: Multiupload.com - upload your files to multiple file hosting sites! VirusScan: VirusTotal - Free Online Virus, Malware and URL Scanner Funktionen: SuperJump Teleport NoSpread NoRecoil
dose any1 no hey to make art money and art ep
12/03/2006 - Eudemons Online - 13 Replies
i have herd the u can use art ep and art mone to get things, and it goes threw. if any1 nos tel me now now now



All times are GMT +1. The time now is 15:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.