Category: Erklärungen

  • PHP Concepts

    Router The router in PHP is responsible for directing HTTP requests to the appropriate logic in an application. It maps incoming requests (e.g., GET or POST) to specific controllers and methods. In frameworks like Laravel, routes are defined in dedicated files (e.g., web.php or api.php) and allow for route parameters, named routes, and middleware assignments.…

    Zum Beitrag

    //

  • MySQL connection to PHP

    To connect your MySQL Database to your PHP you need the connection data (host, port, name, password and charset) which is usually in a “config.php” file. Here’s an example: Then you will also need a “Database” PHP class like this:

    Zum Beitrag

    //

  • MySQL

    Tables In MySQL you will use Tables quite a lot so lets quickly go over what they are, how they work and how to create and “use” one. What is a MySQL Table? A table in MySQL is a structured way to store data in rows and columns. It is similar to a spreadsheet where:…

    Zum Beitrag

    //