Quote:
Originally Posted by Denburt
Looks like Javascript to me.
"public void " is JavaScript? its Java!
Java != JavaScript ... not even close.
OP,
I think you may be having trouble with understanding how the LIMIT function works.
In MySQL the first parameter is the number of the record to START from, the second is how many to display from there.
If you have ten records and said LIMIT 5,3 you would get record number 5 through 8. If you said LIMIT 10,10 you would get only one because counting from 10 there's only one record left (ie there is no 11,12,13...20)
If you're doing this for a pagation the first parameter should be page_number-1 * items_perPage.
so in your code subtract one from string, multiply it by estring and put this result as the first parameter and the number of records to display on a page as the second parameter.
Hope that makes enough sense. Try running some queries without code, from command line or the client to test it out.
Dan