You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$conn = pg_connect("host=$host port=5492 dbname=$db user=$user password=$pass sslmode=require") or die("Error connecting to database.");
$json = "";
if (isset($_GET['pgsql'])) {
$pg_query = $_GET['pgsql'];
$result = pg_prepare($conn, "loc_query", 'SELECT l.* FROM blocks b JOIN locations2 l ON (b.locid = l.locid) WHERE $1 BETWEEN b.startip AND b.endip LIMIT 1');