This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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;"); |