snippets:php
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| snippets:php [2025-06-26 12:38] – Seite inkl. erstem Snippet „Mail-Versand“ erstellt malte70 | snippets:php [2025-11-10 15:56] (current) – [SQLite3] Quellcode-Kommentare malte70 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| [[: | [[: | ||
| + | |||
| + | ==== Gists ==== | ||
| + | |||
| + | Zusätzlich zu den Snippets hier im Wiki habe ich folgende Gists auf GitHub veröffentlicht: | ||
| + | |||
| + | * [[https:// | ||
| ===== Mail-Versand ===== | ===== Mail-Versand ===== | ||
| Line 29: | Line 35: | ||
| echo " | echo " | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== SQLite3 ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | <file php sqlite3.php> | ||
| + | <?php | ||
| + | // Open database and create it if necessary | ||
| + | $db = new SQLite3(" | ||
| + | |||
| + | // Initialize the database with a table and some data | ||
| + | $db-> | ||
| + | $db-> | ||
| + | $db-> | ||
| + | |||
| + | // Create a SQLite3Stmt, | ||
| + | $stmt = $db-> | ||
| + | $stmt-> | ||
| + | $stmt-> | ||
| + | |||
| + | // Execute statement and get first row as an associative Array | ||
| + | $res = $stmt-> | ||
| + | var_dump($res-> | ||
| </ | </ | ||
snippets/php.1750941531.txt.gz · Last modified: by malte70
