From 7f3ff5fb029707bdc6f862cbb6b243f1b7524990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Ignacio=20L=C3=B3pez=20Quintero?= Date: Wed, 17 May 2017 11:00:07 +0200 Subject: [PATCH] Update index.php --- learn/crud/xml/index.php | 65 +++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 34 deletions(-) diff --git a/learn/crud/xml/index.php b/learn/crud/xml/index.php index 0ee7246a..271dc405 100644 --- a/learn/crud/xml/index.php +++ b/learn/crud/xml/index.php @@ -12,40 +12,37 @@ Insert a new student

- + + + ID + First name + Last name + Nickname + Date of birth + Mark + Edit + Delete + + + + "; - echo ''; - echo ''; - echo 'ID'; - echo 'First name'; - echo 'Last name'; - echo 'Nickname'; - echo 'Date of birth'; - echo 'Mark'; - echo 'Edit'; - echo 'Delete'; - echo ''; - echo ''; - echo ''; - - foreach($xml->children() as $student) { - echo ''; - echo '' . $student['id'] . ''; - echo '' . $student->first_name . ''; - echo '' . $student->last_name . ''; - echo '' . $student->nickname . ''; - echo '' . $student->date_of_birth . ''; - echo '' . $student->mark . ''; - echo "Edit"; - echo "Delete"; - echo ''; - } - - echo ''; - echo ''; - ?> + foreach($xml->children() as $student) { + echo ''; + echo '' . $student['id'] . ''; + echo '' . $student->first_name . ''; + echo '' . $student->last_name . ''; + echo '' . $student->nickname . ''; + echo '' . $student->date_of_birth . ''; + echo '' . $student->mark . ''; + echo "Edit"; + echo "Delete"; + echo ''; + } + ?> + +