[Funktion] Array funktion

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Funktion] Array funktion

    Guten Tag,


    if ($this->showold == "true")
    {
    $db->select("*", "news", "(d_kategorie = 'de_termin')", "d_datum ASC", "", "", "");

    while($entry_events = $db->fetch_array());
    {
    array_push($event, $entry_events);
    }

    echo "<pre>";
    print_r($event);
    echo "</pre>";

    $this->assignVars('termineAus', $this->aTrans['termineAus']);
    $this->assignVars('event', $event);
    }


    Ergibt diese Funktion Sinn?
    Also ich möchte, ein Array von Arrays haben.
    Dabei sollen die Arrays im Array jeweils eine Zeile in einer Tabelle darstellen. Mag ja sein, dass ich mich blöd anstelle, aber ich schaffe es nicht zu implementieren.

    Könnte mir jemand bitte sagen wie das geht?

    Danke
    Last edited by compuboy1010; 08-10-2003, 15:55.

  • #2
    PHP Code:
    $array = array();
    $sql ".....";
    $res mysql_query(.....) ....;
    while (
    $row mysql_fetch_assoc($res))
        
    $array[] = $row
    INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


    Comment

    Working...
    X