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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.