"; _pr($_SESSION); //echo $_SESSION['query']; $domain = 'sentier'; localize($domain); if (!empty($_POST)) { /* $_SESSION['query'] = $_POST; echo "post query non vide"; echo gettype($_POST); echo gettype($_SESSION['query']); */ #$liste = $_POST; $liste = array_filter($_POST, function($key) { return strpos($key, 'coche') === 0; }, ARRAY_FILTER_USE_KEY); if (count($liste) == 0) { echo gettext('No image selected !'); header("location:view_bdd.php"); } $r = ""; foreach ($liste as $key => $value) { $r .= "filename LIKE '%" . $value . "' OR "; } $req = "WHERE " . substr($r, 0, -4); } ?>

close session
"; $query = "SELECT * FROM photos " . $req . " ORDER BY id"; echo $query; try { $conn = new PDO('sqlite:db_photo.sqlite3'); $stmt = $conn->prepare($query); $stmt->execute(); #$result = $stmt->fetchAll(PDO::FETCH_ASSOC); #$rowcount = count($result); #_pr($result); ?> '; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; // lens legende copyright title creator keywords $nRows = 0; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); $full = host() . $row['filename']; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $nRows++; } echo '
' . gettext('Id') . '' . gettext('Thumb') . '' . gettext('Filename') . '' . gettext('Date') . ' ' . gettext('Lens') . '' . gettext('Speed') . '' . gettext('Aperture') . '' . gettext('Iso') . '' . gettext('Width') . '' . gettext('Height') . '' . gettext('Model') . '' . gettext('Latitude') . '' . gettext('Longitude') . '' . gettext('Alttitude') . '' . gettext('Legende') . '' . gettext('Copyright') . '' . gettext('Title') . '' . gettext('Creator') . '' . gettext('Keywords') . '' . gettext('Metering') . '' . gettext('Flash') . '' . gettext('Focal') . '' . gettext('Wb') . '' . gettext('Program') . '' . gettext('Html') . '
' . $row['id'] . '' . '' . '' . $row['filename'] . '' . $row['dateoriginal'] . '' . $row['speed'] . '' . $row['aperture'] . '' . $row['iso'] . '' . $row['width'] . '' . $row['height'] . '' . $row['model'] . '' . $row['lat'] . '' . $row['long'] . '' . $row['alt'] . '' . $row['metering'] . '' . $row['flash'] . '' . $row['focal'] . '' . $row['wb'] . '' . $row['program'] . '' . $row['html'] . '
'; echo ''; echo ''; $conn = null; } catch(PDOException $e) { echo $e->getMessage(); } ?>

© 2013- sur-le-sentier.fr