Re: [phpslash-users] Slight add to glossary
Brought to you by:
joestewart,
nhruby
From: Ajay S. <ss...@od...> - 2001-08-03 06:02:41
|
can you throw this up on sourceforge so I'll remember to patch it in? thanks, ajay On Thu, 2 Aug 2001, Zot O'Connor wrote: > For some reason clicking on Glossary does a "search." > > But search fails to sort (ORDER) yet listGlossary did. > > A quick fix: > > Glossary.class: > > 183 if ($search == "") { > 184 $q = "SELECT * > 185 FROM psl_glossary"; > 186 } else { > 187 $q = "SELECT * > 188 FROM psl_glossary > 189 WHERE term LIKE '%$search%' > 190 OR def LIKE '%$search%'"; > 191 } > > > 192 $q .= " ORDER by term"; > > > > -- -------------------------------------------------------------------- Satyajot (Ajay) Sharma ss...@od... Digital Odyssey System Administrator "Intelligence is the ability to avoid doing work, yet getting the work done". --Linus Torvalds -------------------------------------------------------------------- |