Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only unique names
  • Loading branch information
egonw committed Apr 13, 2012
1 parent a51c728 commit 81ffef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compounds.php
Expand Up @@ -96,7 +96,7 @@
}

# get the synonyms
$names = mysql_query("SELECT DISTINCT * FROM molecule_synonyms WHERE molregno = $molregno");
$names = mysql_query("SELECT DISTINCT synonyms FROM molecule_synonyms WHERE molregno = $molregno");
while ($name = mysql_fetch_assoc($names)) {
if ($name['synonyms'])
echo data_triple( $molecule, $RDFS . "label", str_replace("\"", "\\\"", $name['synonyms']) );
Expand Down

0 comments on commit 81ffef3

Please sign in to comment.