Commit a657ce1d authored by dmorley's avatar dmorley
Browse files

fix api call

parent e70c4f11
......@@ -6,8 +6,8 @@
if (!$dbh) {
die("Error in connection: " . pg_last_error());
}
$domain = explode('//',$_GET['url']);
$sql = "SELECT * FROM pods WHERE domain = '$domain[1]'";
$domain = $_GET['url'];
$sql = "SELECT * FROM pods WHERE domain = '$domain'";
$result = pg_query($dbh, $sql);
if (!$result) {
die("Error in SQL query: " . pg_last_error());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment