Gossamer Forum
Home : General : Internet Technologies :

Re: [Paul] Good sorting algorithm...

Quote Reply
Re: [Paul] Good sorting algorithm... In reply to
>>>I don't know how that php function works so correct me if I'm wrong, but what happens if the day is between 01 and 07 and you minus 7...won't you end up with your day at like minus "x"? <<<

Yeah, i accommidated for that Smile

>>>Im not sure what you mean? <<<

Basically, i have my database....i.e;

Code:
ID | Title | isNew | Download
1 test1 1 34
2 test2 0 35
3 test3 1 42
4 test4 1 34
5 test5 0 35
6 test6 1 42
7 test7 1 34
8 test8 0 35
9 test9 1 42

Now, if I'm ordering by isNew, then ID's 1,3,4,6,7 and 9 get shown first, and then 2,5 and 8 get shown.

Now, if I have 5 links per page, then that will cause 1,3,4,6 and 7 to get shown.

When someone clicks on the 'next page' link, it needs to carry on from where it left...i.e 9, then 2,5 and 8.

Do you understand what I'm saying now?

Thanks Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Good sorting algorithm... Andy 6608 Feb 6, 2003, 4:13 AM
Thread Re: [Andy] Good sorting algorithm...
Paul 6265 Feb 6, 2003, 4:15 AM
Thread Re: [Paul] Good sorting algorithm...
Andy 6293 Feb 6, 2003, 4:20 AM
Thread Re: [Andy] Good sorting algorithm...
Andy 6240 Feb 6, 2003, 5:01 AM
Thread Re: [Andy] Good sorting algorithm...
Paul 6194 Feb 6, 2003, 7:54 AM
Thread Re: [Paul] Good sorting algorithm...
Andy 6237 Feb 6, 2003, 8:05 AM
Thread Re: [Andy] Good sorting algorithm...
Paul 6192 Feb 6, 2003, 9:05 AM
Post Re: [Paul] Good sorting algorithm...
Andy 6198 Feb 6, 2003, 9:24 AM