Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. $dbusername = "name";
  3. $dbpassword = "password";
  4. $server = "ipserver";
  5. $dbconnect = mysql_connect($server, $dbusername, $dbpassword);
  6. $dbselect = mysql_select_db("test",$dbconnect);
  7. $sql = "INSERT INTO sensor1(value1,value2,value3,value4,value5,value6,value7) VALUES ('".$_GET["value1"]."','".$_GET["value2"]."','".$_GET["value3"]."','".$_GET["value4"]."','".$_GET["value5"]."','".$_GET["value6"]."','".$_GET["value7"]."')";
  8. mysql_query($sql);
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement