Skip to content
Snippets Groups Projects
Commit 0cc68f5d authored by Omar Ibrahim Arfa's avatar Omar Ibrahim Arfa
Browse files

Fix HTML <img> tag to display pictures from DB

parent 377b6880
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ class Shop extends Page
foreach ($data as $pizza) {
echo <<< HTML
<label>
<img alt="Image of Pizza {$pizza["name"]}" src="./img/{$pizza["picture"]}">
<img alt="Image of Pizza {$pizza["name"]}" src="{$pizza["picture"]}">
<br>
{$pizza["name"]}<br>
{$pizza["price"]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment