12-08-2022

This commit is contained in:
2022-08-12 06:56:30 +02:00
parent e73a0c3a4b
commit f7c5cf7d47
7 changed files with 249 additions and 65 deletions

View File

@@ -35,7 +35,7 @@ else $page = intval($_GET['page']);
try {
$conn4 = new PDO('sqlite:db_photo.sqlite3');
// WHERE id='26'
$query4 = "SELECT filename, date, lens, speed, iso, width, height, html, aperture, model, lat, long, alt, legende, copyright, title, creator, keywords, metering, flash, focal, wb, program FROM photos ORDER BY date DESC LIMIT ? OFFSET ?";
$query4 = "SELECT filename, dateoriginal, lens, speed, iso, width, height, html, aperture, model, lat, long, alt, legende, copyright, title, creator, keywords, metering, flash, focal, wb, program FROM photos ORDER BY dateoriginal DESC LIMIT ? OFFSET ?";
//nb d'archive par page
$limit = 13;
$offset = $limit * ($page -1);
@@ -53,7 +53,7 @@ try {
}
?>
<p class="month"><?php echo month($result[0]['date']); ?></p>
<p class="month"><?php echo month($result[0]['dateoriginal']); ?></p>
<?php
$lb = data_for_lightbox($result[0]);
@@ -115,7 +115,7 @@ try {
<?php
for ($i = 1; $i <= ($rowcount -1); $i++) {
$date = $result[$i]['date'];
$date = $result[$i]['dateoriginal'];
$lb = data_for_lightbox($result[$i]);