<?php

define("DB_PATH", "../travel.db");

$imageSelectSql = <<<SQL
SELECT
i.ImageID, i.UserID, i.Title, i.Description,
i.Latitude, i.Longitude, i.CityCode, c.AsciiName,
i.CountryCodeISO, co.CountryName, i.ContinentCode,
i.Path, i.Exif, i.SourceURL, i.Colors, i.CreatorURL, i.ActualCreator
FROM imagedetails i
INNER JOIN cities c ON i.CityCode = c.CityCode
INNER JOIN countries co ON i.CountryCodeISO = co.ISO
SQL;
