Jump to content

[SOLVED] mysql limit


phorcon3

Recommended Posts

<?php

$a=mysql_query("SELECT * FROM `table` WHERE `this` = 'that' ORDER BY `this` LIMIT ??")

?>

 

so, heres my question:

 

i want only specific records for example:

 

0 - 50

51 - 100

101 - 150

 

how do i do this?

 

would it be:

 

<?php

LIMIT 0,50

?>

 

and

 

<?php

LIMIT 51,100

?>

 

is it that simple? the results look kinda funky, i dunno... anyway, any help is appreciated;)

Link to comment
https://forums.phpfreaks.com/topic/106908-solved-mysql-limit/
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.