This is a discussion on "Limiting While Loops" within the Databases section. This forum, and the thread "Limiting While Loops are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Limiting While Loops
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Limiting While Loops
Ok Webforumz, I need help... I'm a little stuck... Can anyone help me figure out how to use a while loop and limit the amount of rows of data it outputs? Basically, display the last 3 or so entries.
|
|
|
|
#2
|
|||
|
|||
|
Re: Limiting While Loops
umm, some code might help. Which programming language are we using?
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Limiting While Loops
oops, forgot. PHP is what I'm using. The point is I'm trying to see if there is a code for it.
|
|
#4
|
|||
|
|||
|
Re: Limiting While Loops
Shouldn't you be doing that in your sql query?
Something like
|
|
#5
|
|||
|
|||
|
Re: Limiting While Loops
ummm. The while loop is the limit for how many lines of data get output:
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#6
|
|||
|
|||
|
Re: Limiting While Loops
Thanks for all the help everyone
|
![]() |
| Tags |
| loop, mysql, while |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Logic Problem involving loops and arrays | tox0tes | Other Programming Languages | 5 | Oct 28th, 2007 03:11 |
| Free Flash music and ambient loops | equinoxsounds | Flash & Multimedia Forum | 3 | Oct 12th, 2007 09:57 |
| Limiting a while loop? | Weird1993 | Databases | 1 | May 10th, 2007 19:51 |
| Limiting Users Files in a Database... | JohnMitch | Classic ASP | 3 | May 13th, 2005 15:30 |
| while loops? | mikegu | JavaScript Forum | 1 | Oct 26th, 2003 11:08 |