prepare($sql); # bind parameters (s = string, i = integer, d = double, b = blob) $stmt->bind_param('ssdd', $dt, $tid, $lat, $lon); $stmt->execute(); $stmt->close(); } $response = array(); # optionally add objects to return to the app (e.g. # friends or cards) print json_encode($response); ?>