Try the platform for free
Two exercises from a real INF.03 course: working code emulators, no registration, no personal data.
Show electronic products
You have a produkty table with columns: id, nazwa, kategoria, cena.
Task: Show the nazwa and cena columns of all products in the 'Elektronika' category, sorted from the most to the least expensive.
WHERE kategoria = 'Elektronika' and ORDER BY cena DESC Build a page with a product list
Task: Complete the HTML code below so that the page contains:
- An
<h1>heading with the text „Moje produkty” - A
<ul>list with at least 3<li>items - A
<p>paragraph with any description
Changes appear live in the preview panel.
Print numbers with a PHP loop
Task: Write a loop that prints numbers from 1 to 5, each in its own <p> paragraph (e.g. <p>1</p>).
for ($i = 1; $i <= 5; $i++) and echo "<p>$i</p>"; Want more exercises?
Full INF.03 courses with hundreds of exercises, quizzes, exam simulation and certificates. 12 months of access, one-time payment.