From bc2e79e1c61b52293777c493a14233ea61185c7f Mon Sep 17 00:00:00 2001 From: tomivt Date: Tue, 22 Oct 2024 10:43:06 +0200 Subject: [PATCH] Add SubmitQuestion=answer.php --- .idea/.gitignore | 8 ++++++ .idea/WF-Website.iml | 8 ++++++ .idea/dataSources.xml | 12 +++++++++ .idea/material_theme_project_new.xml | 12 +++++++++ .idea/modules.xml | 8 ++++++ .idea/php.xml | 22 ++++++++++++++++ .idea/sqldialects.xml | 6 +++++ .idea/vcs.xml | 6 +++++ index.php | 29 ++++++++++++++++++++ pages/td1.php | 38 +++++++++++++++++++++++++++ src/.DS_Store | Bin 0 -> 6148 bytes src/submitQuestionAnswer.php | 10 +++++++ 12 files changed, 159 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/WF-Website.iml create mode 100644 .idea/dataSources.xml create mode 100644 .idea/material_theme_project_new.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/php.xml create mode 100644 .idea/sqldialects.xml create mode 100644 .idea/vcs.xml create mode 100644 index.php create mode 100644 pages/td1.php create mode 100644 src/.DS_Store create mode 100644 src/submitQuestionAnswer.php diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/WF-Website.iml b/.idea/WF-Website.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/WF-Website.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..e2ffbc4 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + postgresql + true + org.postgresql.Driver + jdbc:postgresql://localhost:5432/dbwikifantasy + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/material_theme_project_new.xml b/.idea/material_theme_project_new.xml new file mode 100644 index 0000000..b631df8 --- /dev/null +++ b/.idea/material_theme_project_new.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..eecd269 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..ff1c9c2 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml new file mode 100644 index 0000000..e294281 --- /dev/null +++ b/.idea/sqldialects.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..3b55c8d --- /dev/null +++ b/index.php @@ -0,0 +1,29 @@ + + + + + + Wiki Fantasy + + + + + +
+
+ + +
+ user +
+
+
+

Wiki Fantasy

+ + diff --git a/pages/td1.php b/pages/td1.php new file mode 100644 index 0000000..2aebfdb --- /dev/null +++ b/pages/td1.php @@ -0,0 +1,38 @@ + co = $co; + } + + public function findByName($name) + { + $query = "SELECT * FROM Artiste WHERE nom = :nom"; + + $this -> co -> executeQuery($query, array('nom' => array($name, PDO::PARAM_STR))); + + $res = $this -> co -> getResults(); + + foreach ($res as $row) + { + $tab[] = new Artiste( + $row['id'], + $row['nom'], + $row['prenom'], + $row['nb'], + ); + } + return $tab; + } + +} + + +foreach ($listNews as $news) +{ + +} diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..806d327740884b39869515737061779532acfec5 GIT binary patch literal 6148 zcmeHK%}T>S5dNlCi0Gl}#fy+9DEJ1kw1@{!zJT@z6oRQXMZM+j!}xrj^qbkG(rkMb zl^K}*b|*8F-EWsn7Jv+v(=(t4AfqaF_SkF?eXg2FCt7xiVmWHuqrwCFs1t8D{6+?J z?+!5GzSX#;e(&E4>dUg4jLT|FA3Y%F)c&Uld%zJMvBV6ERosYsuQ_VG@(j#zhj}Z< zdn?CrlH&FG^nbFmo2*?vTK*imI0Mdr zGw^2_V9i#^_5*tB3^)VMz={F=KIBxzB4QKJJ{@fA3P9}AY{I_&Dr!s~v543NkK#p>kRCKVNdJ-X#4$t zJ;+DSfHUx~7?AGpdN|;cVr@+pr?obx-cVK4uL-ycVaG}_eYF&yP)%shwL>f-HUVj& P_>X|m;EglzqYQijO(0yY literal 0 HcmV?d00001 diff --git a/src/submitQuestionAnswer.php b/src/submitQuestionAnswer.php new file mode 100644 index 0000000..f9f4134 --- /dev/null +++ b/src/submitQuestionAnswer.php @@ -0,0 +1,10 @@ +