Savecode save.php

From CDOT Wiki
Revision as of 12:06, 9 August 2010 by 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 =…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


<?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';