14.12.2013, 02:31
alright,
Say a table in MySQL was called criminal records
Alright, if someone has a row in there it contains information regarding their criminal record.
I.e crime, officer arranged, time, date etc.
So...
If I do a MySQL query and it finds that there are 2 rows (records) matching that persons name then how could I make a maximum of 10 display in a dialog?
Like this:
Showing LATEST 10 records:
Crime here
Crime here.
Because they only have two records how can I like only make it show 2, as in if the maximum is 10 how can I SHOW the latest 10 or most recent, without showing them all, I'm confused by this...
Say a table in MySQL was called criminal records
Alright, if someone has a row in there it contains information regarding their criminal record.
I.e crime, officer arranged, time, date etc.
So...
If I do a MySQL query and it finds that there are 2 rows (records) matching that persons name then how could I make a maximum of 10 display in a dialog?
Like this:
Showing LATEST 10 records:
Crime here
Crime here.
Because they only have two records how can I like only make it show 2, as in if the maximum is 10 how can I SHOW the latest 10 or most recent, without showing them all, I'm confused by this...