![]() |
Mysql order by method
For example, if the search is
Norton free 2010 Download How to order results like this Norton free download Norton download Norton 2010 for pc The first one includes 3 words of the search, so it is first. How to do this, thanks... |
Are you looking to sort the results be word length or by relevance?
|
Quote:
Search "Google SEO Tips" 1. Google SEO Tips 2. Google SEO Tips blog 3. Google search Tips 3. Google search Tips blog If so there is no easy way. The query would require custom functions to be defined using stored procedures. If you want to hire me I will be willing to do this, but here is the best I can/will do for free: This will give you the occurrences of a string in another string (we are finding the number of occurrences of stringB in stringA). mysql Code:
It will return 2. |
Hmm, thank you. How about this >
PHP Code:
|
Quote:
For me to do it in SQL would take me about an hour to write, debug and prefect, so $50. You can see my portfolio at http://www.qsdconsulting.com At the moment you seem to be on to something, so lets see how that goes first. I'm happy to help you as long as you are giving it your effort. |
Ok, I want you to do this for me, do you have msn ?
|
Quote:
|
| All times are GMT. The time now is 08:45 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0