Vytvoření první db + zaci.php vid:78
This commit is contained in:
parent
8eea606905
commit
6c87537056
@ -1,34 +1,5 @@
|
||||
<?php
|
||||
$students = [
|
||||
[
|
||||
"first_name" => "Harry",
|
||||
"second_name" => "Potter",
|
||||
"age" => 11,
|
||||
"life" => "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repudiandae temporibus ullam harum, nostrum nobis inventore, quaerat sit porro consequuntur, delectus eos.",
|
||||
"college" => "Nebelvír",
|
||||
],
|
||||
[
|
||||
"first_name" => "Hermiona",
|
||||
"second_name" => "Grangerová",
|
||||
"age" => 12,
|
||||
"life" => "Repudiandae temporibus ullam harum, nostrum nobis inventore, quaerat sit porro consequuntur, delectus eos. Ducimus facere doloribus fuga error? Consectetur dolorem praesentium recusandae!",
|
||||
"college" => "Nebelvír",
|
||||
],
|
||||
[
|
||||
"first_name" => "Ron",
|
||||
"second_name" => "Weasley",
|
||||
"age" => 11,
|
||||
"life" => "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repudiandae temporibus ullam harum, nostrum nobis inventore, quaerat sit porro consequuntur, delectus eos.",
|
||||
"college" => "Nebelvír",
|
||||
],
|
||||
[
|
||||
"first_name" => "Draco",
|
||||
"second_name" => "Malfoy",
|
||||
"age" => 12,
|
||||
"life" => "Amet consectetur adipisicing elit. Repudiandae temporibus ullam harum, nostrum nobis inventore, quaerat sit porro consequuntur, delectus eos. ",
|
||||
"college" => "Zmijozel",
|
||||
],
|
||||
];
|
||||
|
||||
?>
|
||||
|
||||
<DOCTYPE html>
|
||||
@ -47,9 +18,7 @@ $students = [
|
||||
|
||||
<main>
|
||||
<section>
|
||||
<?php foreach($students as $one_student): ?>
|
||||
<h2><?= $one_student["first_name"]." ".$one_student["second_name"] ?></h2>
|
||||
<?php endforeach ?>
|
||||
|
||||
</section>
|
||||
</main>
|
||||
|
||||
|
0
www2databaze/zaci.php
Normal file
0
www2databaze/zaci.php
Normal file
Loading…
Reference in New Issue
Block a user