Event Script (Einträge nach Datum sortieren)

  • Welche Debug ausgabe?
    Also der gibt jetzt über der Tabelle folgendes aus:

    2|2
    2|2

    mfg Tomasch

  • function sorter ($a, $b)
    {
    $c=implode('', array_reverse(explode('.', $a[0])));
    $d=implode('', array_reverse(explode('.', $b[0])));

    echo print_r($a);


    if ($c == $d) return 0;
    return ($c < $d) ? 1 : -1;
    }

    was kommt dabei raus ?!

  • 22.10.2004 ; Party ; Testdorf2 ; Test2 ; 20 ; Kommentar2 122.10.2007 ; Geburtstag ; Testdorf3 ; Test3 ; 30 ; Kommentar31

  • so jetzt habe ich mir dein ganzes kudelmuddel doch mal angeshen....

  • Danke :) Aber:

    Warning: Invalid argument supplied for foreach() in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 41

    Warning: Invalid argument supplied for foreach() in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 41

    Warning: Invalid argument supplied for foreach() in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 41

    Warning: Invalid argument supplied for foreach() in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 41

    Warning: Invalid argument supplied for foreach() in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 41

    Warning: Invalid argument supplied for foreach() in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 41

  • Frage: Kannst du noch kur einbauen das wenn keine Termine angegeben sind das dann iwie ne meldung in der tabelle steht? *liebguck* :P

    Jetzt steht da nähmlich immer:

    Warning: usort() [function.usort]: The argument should be an array in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 30

    Warning: Invalid argument supplied for foreach() in /srv/www/httpd/phost/f/de/pytalhost/fanta40/web/events/events.php on line 32

    mfg Tomasch

  • Parse error: syntax error, unexpected T_FOREACH in /usr/export/www/vhosts/funnetwork/hosting/tomasch/Events Script/events.php on line 26

  • darfst aber ruhig selbst mal nach kleien fehlern suchen.