Blog about Web Programming and Electronics
The Vadnica Blog is a place where I share my experience with web programming and electronics. Here you will find articles about HTML, CSS, JavaScript, PHP and MySQL, as well as Arduino projects, Linux and news from the world of technology. I write in a simple, understandable language, so the content is accessible to both beginners and more experienced readers.
How to Organize Code with Include and Require
As your website grows, writing the same code (e.g., menu or footer) on every page separately becomes...
Displaying data from a MySQL database on a webpage using PHP PDO
Once we have data safely stored in the database, it's time to display it to visitors. When outputtin...
How to properly design a database for multi-language websites
When starting to build a website in multiple languages, we often wonder if we need to create a separ...
Understanding and Setting the SameSite Attribute for Cookies
Browsers have recently tightened security. If you see a warning about the SameSite attribute on...
How to Force the Footer to the Bottom of the Page Using the calc() Function
On websites with little content, it often happens that the footer doesn\'t stay at the bottom of the...
How to Prevent Whole Page Scrolling (Scroll Chaining)
Has it ever happened to you that while scrolling down within a smaller window (div), once you ...
How to Create an Interactive Hamburger Icon
An interactive hamburger icon is a key element of mobile websites. It allows us to hide the navigati...
How to Properly Display Code and Paragraphs in HTML
When outputting text from a database, we often encounter the issue where the browser ignores new lin...
How to securely connect MySQL and PHP (PDO method)
When working with PHP and databases, security comes first. Older connection methods (such as `...