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:[E
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
> -Original Message-
> From: A. Lyse [mailto:[EMAIL PROTECTED]
> Sent: 06 June 2003 11:34
This was sent privately to me, but I'm redirecting the response back to the list in
case it helps anyone else.
> Feeling kinda stupid. hehe. sorry I didnt label the lines.
Probably no more stupid t
> -Original Message-
> From: A. Lyse [mailto:[EMAIL PROTECTED]
> Sent: 05 June 2003 21:21
>
> 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: Invali
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_compar
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; ih
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 s