snippets:php
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| snippets:php [2025-06-26 13:35] – Abschnitt mit Links zu gist.github.com hinzugefügt malte70 | snippets:php [2025-11-10 15:56] (current) – [SQLite3] Quellcode-Kommentare malte70 | ||
|---|---|---|---|
| Line 35: | 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.1750944906.txt.gz · Last modified: by malte70
