|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Only showing limited amount of data.
Alright, what I have is a database that contains a bunch of items for a videogame I play. It displays the Type, Item Name, and some sale prices that you wouldn't understand. What I want to do is only display things depending on their "type." So I can have a seperate page that displays Weapons, Armor, etc.
Here is the code I'm using, I'm not sure how I need to modify it: |
|
#2
|
|||||
|
|||||
|
RE: Only showing limited amount of data.
Nevermind, I figured it out:
php Code:
|
|
#3
|
|||
|
|||
|
RE: Only showing limited amount of data.
You can also do it this way
Code:
SELECT * FROM sometable LIMIT 5; # Retrieve first 5 rows SELECT * FROM sometable LIMIT 5,10; # Retrieve rows 6-15 SELECT * FROM sometable LIMIT 95,-1; # Retrieve rows 96-last. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Only showing limited amount of data. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|