Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $temperatur = $_GET["temp"] ;
- $feuchte = $_GET["hum"] ;
- $druck = $_GET["druck"] ;
- echo $temperatur ;
- echo $feuchte ;
- echo $druck ;
- $pdo = new PDO('mysql:host=localhost;dbname=wohnzimmer', 'NUTERNAME_PHPMYADMIN', 'PASSWORT_PHPMYADMIN');
- $statement = $pdo->prepare("INSERT INTO sensorwerte (Temperatur , Luftfeuchte , Druck) VALUES (?,?,?)");
- $statement->execute(array($temperatur , $feuchte , $druck));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement