If you are not trying our code then you can't say they are too complex. You need paging to do what you want. You have gotten a load of suggestions and code samples. You have been given logic and direction. Apply that. Show us the non-complex code you put together if it fails so we can help with that. Or search for code samples outside of this board that may be what you think you need. Or actually try something that we are providing so we can help with that. Try something.Da P3s7 wrote:ty everybody for replying.
BUT your codes are too complex in the sense that in my case it can be done simpler (not that for others it wouldn't work):
Simple design issue
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Da P3s7
- Forum Commoner
- Posts: 30
- Joined: Wed Jul 19, 2006 3:25 pm
- Location: /usr/src/kernels/ 2.6.15-1.2054_FC5-i686
To shoepabba:
I don't return all the result set.... i only return the index result set!!!
So if the page counter == end(indexresultset) (last value of the index which IS the last page).
Same is valid if page counter == 0....
To Everah:
I'm not saying they're complex at all. I said they're too complicated for what i need... Can't you read?
As for trying them out:
I don't need to try them out as i've already told you that i've got the pieces needed.
When i string them together ill be able to post IF any problems persist.
IF you want and IF you string them together before me, pls, don't hesitate(??) to post it.
I don't return all the result set.... i only return the index result set!!!
So if the page counter == end(indexresultset) (last value of the index which IS the last page).
Same is valid if page counter == 0....
To Everah:
I'm not saying they're complex at all. I said they're too complicated for what i need... Can't you read?
(Bolded for emphasis)your codes are too complex in the sense that in my case it can be done simpler
As for trying them out:
I don't need to try them out as i've already told you that i've got the pieces needed.
When i string them together ill be able to post IF any problems persist.
What do you think that i'm just standing here all day long waiting for an answer??Try something.
IF you want and IF you string them together before me, pls, don't hesitate(??) to post it.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
The way it reads to me is...Da P3s7 wrote:To Everah:
I'm not saying they're complex at all. I said they're too complicated for what i need... Can't you read?your codes are too complex in the sense that in my case it can be done simpler
Your codes are too complex. Sorry, I guess I read the word complex wrong.
And if you know that the code is too complicated for what you need then you obviously know what you need which makes me wonder why you asked the question in the first place. I only mentioned because you had a series of suggestions offered to you and you rejected just about every one. Nothing personal to you or against you. The typical process is you ask for help, someone tries to help you, you try what they suggest, then start the process over if it fails. I just get the impression that you look at the code we offer and immediately say 'That too complex'. If I am wrong about this I apologize.
- Da P3s7
- Forum Commoner
- Posts: 30
- Joined: Wed Jul 19, 2006 3:25 pm
- Location: /usr/src/kernels/ 2.6.15-1.2054_FC5-i686
You're half true and half wrong:
The initial question however is answered for those who need just that but not for me.
The half in which you are wrong is when you say i look at the code and say "it's too complex".
Actually i already tryied the simplest of the solutions as you can read in the first post i made after i started the thread.
And obviously i can't see why YOU're complaining when you haven't posted even one line of code. I can't say you didn't try to help as you did post the link to the pagination code snippet but as i said i don't need page nums (at least for now. Dunno what the boss will think next but this is what he wants, for now)
Edit to beneath post... : Thx
I already tried to give you the pieces and i said i haven't been able to assemble them.And if you know that the code is too complicated for what you need then you obviously know what you need which makes me wonder why you asked the question in the first place
The initial question however is answered for those who need just that but not for me.
The half in which you are wrong is when you say i look at the code and say "it's too complex".
Actually i already tryied the simplest of the solutions as you can read in the first post i made after i started the thread.
And obviously i can't see why YOU're complaining when you haven't posted even one line of code. I can't say you didn't try to help as you did post the link to the pagination code snippet but as i said i don't need page nums (at least for now. Dunno what the boss will think next but this is what he wants, for now)
Edit to beneath post... : Thx
Last edited by Da P3s7 on Tue Jul 25, 2006 11:08 am, edited 1 time in total.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA