Re: Rating results after relevance. Difficult problem

From: Date: Thu, 09 May 2002 08:29:08 +0000
Subject: Re: Rating results after relevance. Difficult problem
References: 1 2 3  Groups: php.db php.general 
Request: Send a blank email to php-db+get-19067@lists.php.net to get a copy of this message
In article <20020509065440.5713.qmail@pb1.pair.com>, news.letters@gmx.de says... > wow! Sven's idea works just great! Didn't try it on the 2000 user db though. > But I looks much clearer than creating temp tables and doing all the math on > 1000 users in php. > > So I was just wondering if there is a better way to get rid of the 0 results > than I have found. > First I did try to add > where results != 0 > but the db does not know about the results row > Then I did put the whole if statement ( if (news.text_short like '%test%', > 50, 0) + if (user.name > > like '%woodoo%', 50, 0) > into the where clause and this works. Just not that elegant. > Minor prob, but maybe someone knows a better way. > > > Thanx for the great help! > > Andy This is mysql? Try NOT ISNULL to exclude null values. -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.db (#19067) next »