1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14: | $pers_query = mysql_query("SELECT pers_name, pers_vorname, titel,sc_dispo_personal.id, eventdatum FROM sc_dispo_personal
LEFT JOIN sc_dispo_daten ON sc_dispo_daten.pers_id = sc_dispo_personal.id
LEFT JOIN sc_dispo_auftrag ON sc_dispo_auftrag.id = sc_dispo_daten.auftrag_id
");
while($row = mysql_fetch_array($pers_query)) {
echo mysql_error();
$mein_array [$row["pers_name"]] += $row["eventdatum"] . ' ' . $row["titel"] . ' ';
}
foreach (array_keys($mein_array) as $pers_name)
{
echo "$pers_name:" . $mein_array[$pers_name] . "<br>\n";
} |