12-08-2022
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user