diff options
-rw-r--r-- | getjson.php | 4 | ||||
-rw-r--r-- | index.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/getjson.php b/getjson.php index 0288646..14af09b 100644 --- a/getjson.php +++ b/getjson.php @@ -20,8 +20,8 @@ if (isset($_REQUEST["S"])) { /* single tag or part of tag */ $tag = sqlite_escape_string($_REQUEST["S"]); - /* individual tags are separated by '+' */ - $result = $DB->query("SELECT name FROM tags where name like \"%$tag%\""); + + $result = $DB->query("SELECT name FROM tags"); $count = $DB->query("SELECT 1"); } else @@ -64,7 +64,7 @@ var count=0; /* populate data list with tags*/ d3.json("<?php echo $webbase?>/getjson.php?S", function(json) { - d3.select("#MyTags").selectAll("option").data(json) + d3.select("#MyTags").selectAll("option").data(json[1]) .enter().append("option").attr("value",function(d) {return d.name}); }); |