Permalink
Browse files

Only unique names

  • Loading branch information...
1 parent a51c728 commit 81ffef366d0cb825d4c1a072ad5a3494c8e3e478 @egonw committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compounds.php
View
@@ -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']) );

0 comments on commit 81ffef3

Please sign in to comment.