diff --git a/learn/crud/sql/index.php b/learn/crud/sql/index.php index 80268870..b7b3da5f 100644 --- a/learn/crud/sql/index.php +++ b/learn/crud/sql/index.php @@ -11,41 +11,43 @@

Students

Insert a new student

- - prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - - foreach ($rows as &$row) { - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - } +
IDFirst nameLast nameNicknameDate of birthMarkEditDelete
' . $row['id'] . '' . $row['first_name'] . '' . $row['last_name'] . '' . $row['nickname'] . '' . $row['date_of_birth'] . '' . $row['mark'] . 'EditDelete
+ + + + + + + + + + + + + + prepare($sql); + $sth->execute(); + $rows = $sth->fetchAll(); - echo '
IDFirst nameLast nameNicknameDate of birthMarkEditDelete
'; - ?> + foreach ($rows as &$row) { + echo ''; + echo '' . $row['id'] . ''; + echo '' . $row['first_name'] . ''; + echo '' . $row['last_name'] . ''; + echo '' . $row['nickname'] . ''; + echo '' . $row['date_of_birth'] . ''; + echo '' . $row['mark'] . ''; + echo 'Edit'; + echo 'Delete'; + echo ''; + } + ?> + +