My made-up query invention

Discussion in 'PHP' started by jayg5000, Jan 4, 2007.

  1. #1
    Is it possible to use the MATCH () AGAINST () in a query that selects distinct fields ($query = "SELECT distinct) and be able to rank them by order?

    It would look something like this if it were possible:
    $query = "SELECT DISTINCT product, code
    	      		FROM items
    	      		WHERE MATCH (product,code) AGAINST ('$search') ORDER BY Relevance DESC";
    Code (markup):

     
    jayg5000, Jan 4, 2007 IP
  2. vinodkv

    vinodkv Peon

    Messages:
    183
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    vinodkv, Jan 5, 2007 IP