Jump to content

ORDER BY most matched


Porl123

Recommended Posts

I've just made a search form for a page on my site that gets all images with a name similar to the one entered with `filename` LIKE '%'.$_POST['name'].'%' and I was wondering is there a way to order the results of the query by the results that match the search criteria the most? So going from most matched to least? If that's possible could you talk me through it? Thanks !

Link to comment
https://forums.phpfreaks.com/topic/182962-order-by-most-matched/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.