Category: Befehle

  • 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

    //

  • PHP Datatypes

    Array There’s an explanation about arrays with examples: Array explanation Object The Object datatype in PHP is used to represent instances of classes in Object-Oriented Programming (OOP). An object is a complex data type that can contain both properties (variables) and methods (functions) within a class. The object is created by instantiating a class, and…

    Zum Beitrag

    //