Jump to content

get percentage of search result


Dragen

Recommended Posts

Hi,

I'm not sure if this is php or mysql, but I'm trying to find a function which gets the percentage match of a mysql query.

I've seen it before, but can't remember it now.. I also can't remember whether it was a php function or mysql.

 

I'm well aware that I can figure out percentages with a bit of multiplying, dividing etc, but I'm sure there's a simple bit of code to do it for me.

 

Does anyone know what it it?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/75111-get-percentage-of-search-result/
Share on other sites

Yeah.. I've looked everywhere and can't seem to find anything on it, apart from a post on here about mysql using this:

>>>%

or something to get the percent, but no info about it.

 

I wish I'd kept the page bookmarked that I found originally. It explained how to do it quite well.

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.