diff --git a/controllers/c_photo.php b/controllers/c_photo.php new file mode 100644 index 0000000..b800c6f --- /dev/null +++ b/controllers/c_photo.php @@ -0,0 +1,13 @@ +prepare("SELECT * FROM Photo p INNER JOIN Categorie c ON c.catId = p.catId WHERE p.photoId = ?"); + $req->execute(array($id)); + + $photo = $req->fetch(); + $req->closeCursor(); + } catch (Exception $e) { + $alert = choixAlert("query"); + } +} elseif ($bdd instanceof Exception) + $alert = choixAlert("query"); diff --git a/views/v_accueil.php b/views/v_accueil.php index c98a828..ca355fe 100644 --- a/views/v_accueil.php +++ b/views/v_accueil.php @@ -11,7 +11,7 @@ - + "> diff --git a/views/v_photo.php b/views/v_photo.php new file mode 100644 index 0000000..1a46c93 --- /dev/null +++ b/views/v_photo.php @@ -0,0 +1,36 @@ + + + + + + + + +
= DESCRIPTION ?> | += $photo["description"] ?> | +
---|---|
= FILE_NAME ?> | += $photo["nomFich"] ?> | +
= CATEGORY ?> | += $photo["nomCat"] ?> | +