iwa-panda1

Manage Weather Data by International Weather Agency (Version 1)
Log | Files | Refs

commit f356ec134cfd137c90a33de4ee43d6c265f6b1ef
parent c2f19f1b477854c0d79d7a08e1bd35e22d407358
Author: Johs <[email protected]>
Date:   Sat, 25 Mar 2023 14:18:37 +0100

Dataverwerker

Diffstat:
A.idea/.gitignore | 8++++++++
A.idea/iwa-webapp.iml | 9+++++++++
A.idea/modules.xml | 9+++++++++
A.idea/php.xml | 20++++++++++++++++++++
A.idea/vcs.xml | 7+++++++
Adatainserter.php | 28++++++++++++++++++++++++++++
6 files changed, 81 insertions(+), 0 deletions(-)

diff --git a/.idea/.gitignore 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/iwa-webapp.iml b/.idea/iwa-webapp.iml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="WEB_MODULE" version="4"> + <component name="NewModuleRootManager"> + <content url="file://$MODULE_DIR$" /> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> +\ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/iwa-webapp.iml" filepath="$PROJECT_DIR$/.idea/iwa-webapp.iml" /> + </modules> + </component> +</project> +\ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="MessDetectorOptionsConfiguration"> + <option name="transferred" value="true" /> + </component> + <component name="PHPCSFixerOptionsConfiguration"> + <option name="transferred" value="true" /> + </component> + <component name="PHPCodeSnifferOptionsConfiguration"> + <option name="highlightLevel" value="WARNING" /> + <option name="transferred" value="true" /> + </component> + <component name="PhpStanOptionsConfiguration"> + <option name="transferred" value="true" /> + </component> + <component name="PsalmOptionsConfiguration"> + <option name="transferred" value="true" /> + </component> +</project> +\ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> +\ No newline at end of file diff --git a/datainserter.php b/datainserter.php @@ -0,0 +1,27 @@ +<?php +$servername = "86.92.67.21"; +$username = "friedel"; +$password = "hailiwa"; +$dbname = "wap2"; + +// Create connection +$conn = mysqli_connect($servername, $username, $password, $dbname); +// Check connection +if (!$conn) { + die("Connection failed: " . mysqli_connect_error()); +} + +$sql = "SELECT * FROM weerdata"; +$result = mysqli_query($conn, $sql); + + +if ($_SERVER["REQUEST_METHOD"] == "POST") { + // collect value of input field + $vname = $_POST['voornaam']; + $aname = $_POST['achternaam']; + $email = $_POST['email']; + $password = $_POST['password']; + $permissions = $_POST['permissions']; +} + +$json_data = file_get_contents(''); +\ No newline at end of file