Re: [PHP-DB] PHP sort from .... best solution?

2003-06-08 Thread A. Lyse
Hi again! Is it possibile to only show articles from a sertain month. say I want to show all articles from June 2003 (2003 01/06 - 2003 31/06)... the variable here is publisert It should be enough info over to help me :) Regards, A. Lyse A. Lyse [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP-DB] PHP sort from .... best solution?

2003-06-06 Thread A. Lyse
Hi! Thanks! But I got a problem with the code: The PHP file as it is with the code pasted into it will i'll past at the end of this post. The problem is I get the error: Warning: Invalid argument supplied for foreach() in /home/amotor/www/list_ingresser_artikler.php on line 43 If I put a // in

Re: [PHP-DB] PHP sort from .... best solution?

2003-06-05 Thread heilo
hi the easier way is as Mike Ford did it very elegantly with this structur: function obj_date_compare($a, $b) { return strcmp($a-publisertLang, $b-publisertLang); } ... if($ingresser = array_merge($i1 ,$i2)) { $ingresser = usort($ingresser, 'obj_date_compare');

Re: [PHP-DB] PHP sort from .... best solution?

2003-06-04 Thread heilo
no prob i think its not the best solution, because its a workaround the core-problem. as i said it would be better to access the data directly and without any functions or complicated classes. this structure is for very complex systems whose code may change very often. so the highest standard of

Re: [PHP-DB] PHP sort from .... best solution?

2003-06-04 Thread A. Lyse
Hi again! I talked to the admin guy and he said there is an easyer way to do this (as usual he doenst have the time to show me) so I try here: He gave me a liddle example in c and a light translation to PHP: Bubble sort (exampel written in c, but can easyly be translated to php): for (i=0;