From 81ffef366d0cb825d4c1a072ad5a3494c8e3e478 Mon Sep 17 00:00:00 2001 From: Egon Willighagen Date: Fri, 13 Apr 2012 14:55:55 +0200 Subject: [PATCH] Only unique names --- compounds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compounds.php b/compounds.php index 50aa0b6..80ae89e 100644 --- a/compounds.php +++ b/compounds.php @@ -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']) );