Skip to content

Instantly share code, notes, and snippets.

View winofi's full-sized avatar

Winofi winofi

View GitHub Profile
@winofi
winofi / poll.php
Last active January 20, 2019 21:29
suggested wspr polling interface
<?php
//get start parameter (intval returns 0 for bad integer values)
$start = intval($_GET["minid"]);
//create database connection (assuming some sort of mysql is uses)
$db = new mysqli("localhost", "root", "root", "wspr");
//query the data, limit might be modified
$res = $db->query("SELECT * FROM `spots` WHERE `spot_id` > ".$start." LIMIT 0, 1000;");