Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbusername = "name";
- $dbpassword = "password";
- $server = "ipserver";
- $dbconnect = mysql_connect($server, $dbusername, $dbpassword);
- $dbselect = mysql_select_db("test",$dbconnect);
- $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"]."')";
- mysql_query($sql);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement