<?php
/*
* LastUpdate: 2020-03-14
* Version: 1.0.1 (Nur Kommentar geändert.)
* Author: Jörg Reinholz, fastix WebDesign & Consult Kassel, http://www.fastix.org
* Requirements: PHP > 7.0
* Licence: https://code.fastix.org/lizenz.php
* Non-Warranty: https://code.fastix.org/haftung.php
*/
require_once 'ftxPDO.class.php';
/** Tests: **/
#/*
$pdo = new ftxPDO ( 'sqlite: values.sqlite3', E_USER_NOTICE );
#$pdo = new ftxPDO ( 'sqlite:readonlyFile.sqlite3', E_USER_NOTICE );
#$pdo = new ftxPDO ( 'sqlite:readonlyFile.sqlite3', E_USER_ERROR );
#$pdo = new ftxPDO ( 'sqlite:notExistFile', E_USER_ERROR );
$sql = 'SELECT id, timestamp, url_effective FROM speed LIMIT 2';
try {
$stmt = $pdo->prepare( $sql );
if ( $stmt ) {
$stmt -> execute();
while ( $result = $stmt -> fetch( PDO::FETCH_ASSOC ) ) {
}
} else {
trigger_error( 'SQL-Error: ' . ( $pdo->errorInfo() )[2] . ' in "' . $sql .'"', E_USER_ERROR );
}
} catch ( PDOException $e ) {
}
# */