Hi!
 

Well, it's not that easy to describe my problem...
 

It don't really matter what I program, because the main problem is just a push into an array. When I call my page nothing happens and it's like a never-ending-loop until I stop apache. If I place a "die" in front of it, the page dies correctly, but when I set it after the mysterious push nothing's happening like before.

Here's the part of my script:

[$ foreach $group @groups $]

                                        <!-- Testen, ob wir Programme in einer Gruppe haben... -->

                                        [-
                                                Adabas::sql($cursor,"select pid from members where gid=$group");
                                                @memberpids=Adabas::fetch($cursor);
                                                @anz=();
                                        -]

                                        [$ foreach $curpid @memberpids $]
                                                [-
                                                        for (@pids)
                                                        {

                                                                if ($_ == $curpid)
                                                                {
                                                                        #die join(",",@memberpids)." und ".join(",",@pids)." und $_ und ausserdem $curpid und auch noch $group";
                                                                        push(@anz,$_);
                                                                }
                                                        }

                                                -]
                                        [$ endforeach $]

                                        [-
                                                $anzahl=@anz;
                                        -]

                                        [$ if ($anzahl > 0) $]

                                                [-

                                                        $maxcols=4;

                                                        if ($anzahl <= 4)
                                                        {
                                                                $maxcols=1;
                                                        }

                                                        if ($anzahl <= 9)
                                                        {
                                                                $maxcols=2;
                                                        }

                                                        if ($anzahl <= 14)
                                                        {
                                                                $maxcols=3;
                                                        }
 

....
 

Now there's something more: As you see I use the array "anz". If I exchange anz in the push-command through -- let's say "wanz" -- it works. But if I set all other occurences of anz to wanz, it doesn't work...
 

That's strange, ain't it? But perhaps you can help me though.

Thx in advance,

Cu,
Dennis
 
 

-- 
PharmLog
Pharma Logistik

Dennis Plöger
Webmaster
Siemensstr.1
59199 Bönen
Tel: (0 23 83) 930 431
Fax: (0 23 83) 83 66
E-Mail: [EMAIL PROTECTED]
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to