/*ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
*/
include("sql.php");?>
$sql = "SELECT * FROM gallery WHERE id='".$_GET['id']."'";
$res = mysqli_query($db, $sql);
$data = mysqli_fetch_array($res);
if ($data['child'] == 1) $child = "chloe";
if ($data['child'] == 2) $child = "arthur";
?>
Photos
if ($data['child'] == 1) echo "de Chloé";
if ($data['child'] == 2) echo "d'Arthur";?> \ echo $data['name']; ?>
Accueil \ if ($data['child'] == 1) echo "Chloé"; if ($data['child'] == 2) echo "Arthur"; ?> \ echo $data['name']; ?>
$folder = $data['path'];
$dir = opendir("img/$child/$folder/thumb/");
if(is_dir("img/$child/$folder/thumb/")) {
while (($file = readdir($dir)) !== false) {
if(strstr($file,".jpg") OR strstr($file,".JPG")) {
$files[] = $file;
$data = exif_read_data("img/$child/$folder/orig/".$file, 0, true);
$times[] = $data['EXIF']['DateTimeOriginal'];
}
}
}
array_multisort($times, SORT_ASC, $files);
foreach($files as $file) {
echo "\n";
echo "\n";
echo "";
}
?>