diff --git a/TP8/PHP/citations.php b/TP8/PHP/citations.php new file mode 100644 index 0000000..a67b69f --- /dev/null +++ b/TP8/PHP/citations.php @@ -0,0 +1,12 @@ + + + + + + Bootstrap demo + + + + + + \ No newline at end of file diff --git a/TP8/PHP/database.php b/TP8/PHP/database.php new file mode 100644 index 0000000..d7453d0 --- /dev/null +++ b/TP8/PHP/database.php @@ -0,0 +1,36 @@ +getMessage(); + } + } + function dbGetAuthorsNames(PDO $conn) { + $pgsql = "SELECT nom, prenom FROM auteur"; + $stmt = $conn->prepare($pgsql); + $stmt->execute(); + $result = $stmt->fetchAll(PDO::FETCH_ASSOC); + return $result; + } + + function dbGetQuotes(PDO $conn) { + $pgsql = "SELECT phrase FROM citation"; + $stmt = $conn->prepare($pgsql); + $stmt->execute(); + $result = $stmt->fetchAll(PDO::FETCH_ASSOC); + return $result; + } + + function dbGetCenturies(PDO $conn) { + $pgsql = "SELECT numero FROM siecle"; + $stmt = $conn->prepare($pgsql); + $stmt->execute(); + $result = $stmt->fetchAll(PDO::FETCH_ASSOC); + return $result; + } +?> \ No newline at end of file diff --git a/TP8/PHP/modification.php b/TP8/PHP/modification.php new file mode 100644 index 0000000..ba6e32c --- /dev/null +++ b/TP8/PHP/modification.php @@ -0,0 +1,12 @@ + + + + + + Bootstrap demo + + + + + + \ No newline at end of file diff --git a/TP8/PHP/query.php b/TP8/PHP/query.php new file mode 100644 index 0000000..aa327c0 --- /dev/null +++ b/TP8/PHP/query.php @@ -0,0 +1,47 @@ + + +

Auteurs de la BD

+ + + + + + + + + "; + echo ""; + echo ""; + echo ""; + } + ?> + +
NomPrénom
" . $author['nom'] . "" . $author['prenom'] . "
+ +
+ +

Citations de la BD

+" . $quote['phrase'] . "

"; + } +?> + +
+ +

Siecle de la BD

+" . $century['numero'] . "

"; + } +?> \ No newline at end of file diff --git a/TP8/PHP/recherche.php b/TP8/PHP/recherche.php new file mode 100644 index 0000000..ba6e32c --- /dev/null +++ b/TP8/PHP/recherche.php @@ -0,0 +1,12 @@ + + + + + + Bootstrap demo + + + + + + \ No newline at end of file