Hallo zusammen,
ich habe mich mal daran gemacht, meine Notice Fehler zu behandeln. Einige wie z.B. "Notice: Undefined index: id in ... on line ..."
habe ich dann so behoben
Jetzt habe ich aber noch was anderes.
Wenn da z.B. nur Daten bei den _c drin sind und die _z leer sind dann bringt er natürlich Notices darüber. Kann ich da jetzt das auch so beheben wie bei dem $_GET['id'] oder muss ich da anders vorgehen?
Vielen Dank schonmal.
ich habe mich mal daran gemacht, meine Notice Fehler zu behandeln. Einige wie z.B. "Notice: Undefined index: id in ... on line ..."
PHP-Code:
$id = $_GET['id'];
PHP-Code:
if (array_key_exists('id',$_GET))
{
$id = $_GET['id'];
}
PHP-Code:
for($i=0; $i < count($uebersicht2); $i++)
{
$protokoll .= "<tr>
<td>
".$uebersicht2[$i]['name']."
</td>
<td>
".$uebersicht2[$i]['stunden_c']."
</td>
<td>
".$uebersicht2[$i]['grund_c']."
</td>
<td>
".$uebersicht2[$i]['datum_c']."
</td>
<td>
".$uebersicht2[$i]['stunden_z']."
</td>
<td>
".$uebersicht2[$i]['grund_z']."
</td>
<td>
".$uebersicht2[$i]['datum_z']."
</td>
</tr>";
}
Vielen Dank schonmal.
Kommentar