How Dynamic Web Pages Work
It’s one thing to know about HTML and CSS and PHP and all the rest of web coding and development, but it’s quite another to actually do something useful with these technologies. A dynamic web page is one that includes content that, rather than being hard-wired into the page, is generated on-the-fly from the web server. This means the page content can change based on a request by the user, by data being added to or modified on the server, or in response to some event, such as the clicking of a button or link.
It likely sounds a bit like voodoo to you now, so perhaps a bit more detail is in order. For example, suppose you want to use a web page to display some data that resides on the server. Here’s a general look at the steps involved in that process:
- MySQL uses the SQL command to extract the required information from the database and then return that data to the PHP script.