Difference between revisions of "Savecode save.php"
SimonClark (talk | contribs) (Created page with ' <?php include('/var/www/dev.zebraspot.com/html/includes/zebracode.php'); dbConnect('pro608a'); $data = addslashes(json_encode($_POST)); $key = GetValue('datakey'); $time =…') |
SimonClark (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | <source land="php> | |
− | |||
<?php | <?php | ||
Line 16: | Line 15: | ||
echo 'success'; | echo 'success'; | ||
+ | |||
+ | </source> |
Revision as of 11:10, 9 August 2010
<?php
include('/var/www/dev.zebraspot.com/html/includes/zebracode.php');
dbConnect('pro608a');
$data = addslashes(json_encode($_POST));
$key = GetValue('datakey');
$time = time();
GetQuery("INSERT INTO rawdata (timestamp, jsondata, datakey) VALUES ('$time','$data','$key')");
echo 'success';