Welcome Guest, Not a member yet? Register   Sign In
limit in mysql
#2

[eluser]Michael Wales[/eluser]
Code:
$query = $this->db->get(’mytable’, 10, 20);
Not sure how you could even deduce that would only show the first 2 queries but I will venture to explain what this will show. The query will be:
Code:
SELECT * FROM `mytable` LIMIT 10, 20
This means, start at record 20, and get the next 10 items.

Code:
$query = $this->db->get(’mytable’,2)
This means, start at record 0 (the first record in the table), and get the next 2 items.


Messages In This Thread
limit in mysql - by El Forum - 03-05-2008, 09:14 PM
limit in mysql - by El Forum - 03-05-2008, 09:20 PM
limit in mysql - by El Forum - 03-06-2008, 06:32 PM
limit in mysql - by El Forum - 03-07-2008, 01:23 AM
limit in mysql - by El Forum - 03-07-2008, 01:46 AM
limit in mysql - by El Forum - 03-07-2008, 02:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB