The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Limiting in mySQL
Hi, how would I limit in mysql, like on the first page there would only be 50, then on the next 50-100 and so on?
Thanks -Arunan |
#2
|
||||
|
||||
I would also like to know this:P
Satan |
#3
|
||||
|
||||
Quote:
-Arunan |
#4
|
||||
|
||||
Possibly...But I am interested in learning anything and everything about PHP & MySQL
Satan |
#5
|
||||
|
||||
Fifty what? Threads? Posts?
The basic query is: PHP Code:
|
#6
|
||||
|
||||
Well, like after the 50 is posted, how would i make it so on the next page, all the stuff from 51-100 are shown?
Is it something like [sql]$DB_site->query("SELECT * FROM thread LIMIT 51,100");[/sql] ? -Arunan |
#7
|
||||
|
||||
You got it noX
Should be $DB_site->query_first though I think |
#8
|
||||
|
||||
So
[sql]$DB_site->query_first("SELECT * FROM thread LIMIT 51,100");[/sql] Thanks -Arunan |
#9
|
||||
|
||||
That looks good to me noX
|
#10
|
||||
|
||||
Thanks NTLDR, thanks Velocd
Appreciate your continuted support here -Arunan |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|