This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Pfad zur Excel-Datei | |
| // Beachte, dass die Datei im CSV-Format vorliegen muss | |
| // Wenn deine Excel-Datei im .xls oder .xlsx-Format vorliegt, müsstest du die Datei zunächst in das CSV-Format konvertieren | |
| $excelFile = 'example.csv'; | |
| // Datei öffnen | |
| $file = fopen($excelFile, 'r'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Verbindung herstellen | |
| $conn = new mysqli($servername, $username, $password, $database); | |
| // Verbindung überprüfen | |
| if ($conn->connect_error) { | |
| die("Verbindung fehlgeschlagen: " . $conn->connect_error); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function getData() | |
| { | |
| $data = [ | |
| ["username" => "Sven", "datum" => "donnerstag", "soll" => 1, "ist" => 2], | |
| ["username" => "Sven", "datum" => "freitag", "soll" => 1, "ist" => 2], | |
| ["username" => "Lars", "datum" => "donnerstag", "soll" => 1, "ist" => 2], | |
| ["username" => "Lars", "datum" => "samstag", "soll" => 1, "ist" => 2], | |
| ["username" => "Lars", "datum" => "samstag", "soll" => 2, "ist" => 3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git init | |
| git add README.md | |
| git commit -m "Erster Commit" | |
| git commit -M main | |
| git remote add origin url_des_remote_repositories | |
| git push -u origin main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function rechneStundenProProjekt(ist, soll) { | |
| var mehrStundenInProzent = 0; | |
| var wenigerStundenInProzent = 0; | |
| switch (true) { | |
| case soll - ist > 0: | |
| mehrStundenInProzent = (100 / ist) * soll - 100; | |
| break; | |
| case soll - ist < 0: | |
| wenigerStundenInProzent = 100 - (100 / ist) * soll; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| th { | |
| /* | |
| double, solid, dashed, dotted, ridge, outset, groove', and the lowest: inset*/ | |
| border: 2px solid blue; | |
| display: table-cell; | |
| padding: 10px; | |
| vertical-align: top; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="de"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Table Style</title> | |
| <style> | |
| .cell-8 { | |
| width: 100%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use setasign\Fpdi\Fpdi; | |
| // or for usage with TCPDF: | |
| // use setasign\Fpdi\Tcpdf\Fpdi; | |
| // or for usage with tFPDF: | |
| // use setasign\Fpdi\Tfpdf\Fpdi; | |
| // setup the autoload function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @api https://github.com/Setasign/FPDI | |
| * @require php "^8.2.12" - "^5.6 || ^7.0 || ^8.0" | |
| * @require "ext-zlib": "*" | |
| * @require "setasign/fpdf": "^1.8", | |
| * @require "setasign/fpdi": "^2.6" | |
| */ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| /* | |
| Twiggy | |
| Composer | |
| DatabaseClient JDBC | |
| ftp-kr | |
| Modern-Twig | |
| Open in SourceTree | |
| Open PHP/HTML/JS in Browser | |
| PHPDOC Commaent |