• 0

[PHP] Free MySQL search script


Question

Hey Neowin!

I'm working on a new website, including my own CMS, and I'm in need of a search function. Obviously I know the basic principle, MySQL query and stuff, but that won't cut it. I need something a bit more advanced, which gives more relevant search results.

I've browsed Hotscripts.com for a few minutes, but couldn't really come up with anything concrete. Saw a good one, only to find out that you had to pay for it. There were other (free) ones, but it was hard to find one that fit the description.

So I thought, the good people of Neowin could help me. Surely someone here has some hands-on experience with a more advanced, free search script. Well, at least I hope so, because I could really use one.

I'm not looking for a personal Google, but just something that'll give me better search results than the basic MySQL query.

Thanks in advance!

Link to comment
https://www.neowin.net/forum/topic/710988-php-free-mysql-search-script/
Share on other sites

8 answers to this question

Recommended Posts

  • 0

You could always do it yourself. :)

Your options are Full Text Searching and LIKE searching I believe. I think Full Text Searching is the kind that you might see on sites that have a percentage next to them and supports boolean stuff. Its not that hard to do really. If you go the LIKE route, take your search string, split it on say spaces and then create your query (LIKE "THIS" OR LIKE "THAT"). And I spose you could throw in some checks to ignore common words.

This is the first google result I found that looked pretty interesting. :)

http://devzone.zend.com/node/view/id/1304

  • 0

Thanks for the help. Those are some things I already came across. I know the basics are not hard to do. If I were to do them myself, I'd go for full text.

Thing is, I've tried the basics, and they don't satisfy me. I'm hard to please. :p

I need something with more finetuning: which I've found out, is the hardest thing about making a search script. Seeing as I've still a lot more work to do with my CMS, I was hoping to save myself a lot time with a complete script. :)

  • 0

I've researched it, I know how it's done, but like I said, the standard searches just SUCK. :p

Also, I'm not asking any of you to make it for me. I was just wondering if anybody knew of any free advanced scripts. Apparently, that's not the case, so I'll have to figure out something else.

Thanks though. :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Popular Now

  • Posts

    • Meta says you'll soon be getting ads on WhatsApp by David Uzondu No, the headline is not clickbait. WhatsApp is getting ads. For years, the messaging app has been the golden child, bought by Meta for $19 billion back in 2014 and left mostly untouched. That long, ad-free holiday is officially over. Your private chats with friends and family are safe for now, as the ads will not appear there. Instead, they will be sandwiched between Status updates, just like you already see them in Instagram Stories. Apart from ads in Statuses, Meta is also letting people pay to promote their Channels. This means businesses and creators can pay to get their broadcast channels discovered by more users. A few will even be able to charge for subscriptions to their channels for exclusive content. The company says it will not take a fee from these subscriptions at first, but that is probably not going to last forever. Meta is a business, after all, not a charity. Meta has tried to calm everyone down by saying your personal chats and calls will remain encrypted and untouched. The company claims it only uses general information like your country and language, plus the channels you follow, to figure out which ads to show you. However, if you have linked your WhatsApp to Meta's Account Center, then your ad preferences from Facebook and Instagram will follow you. This entire plan certainly excited Wall Street. After the news broke, Meta's stock climbed 2.8% in pre-market trading, as investors salivated over the prospect of finally monetizing WhatsApp's 2 billion+ users. Ads in messaging apps are not new at all. Take Telegram, for example. The app shows sponsored messages in large public channels, but it also gives users a way out. For a monthly fee, you can get Telegram Premium, and all those ads disappear (plus a bunch of advanced paid features). Maybe, in the future, WhatsApp will offer a similar premium service for people willing to pay to escape the ads.
    • To say that it's build in America, they can build it somewhere else and just put the back cover on the smartphone in America et put it in a box. On some country they put just the last screw to finish the product
    • "The T1 phone will be designed and built in America." I was looking for this information and wasn't disappointed! 👍🏻
  • Recent Achievements

    • Week One Done
      patrickft456 earned a badge
      Week One Done
    • One Month Later
      patrickft456 earned a badge
      One Month Later
    • One Month Later
      Jdoe25 earned a badge
      One Month Later
    • Explorer
      Legend20 went up a rank
      Explorer
    • One Month Later
      jezzzy earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      639
    2. 2
      ATLien_0
      281
    3. 3
      +FloatingFatMan
      172
    4. 4
      Michael Scrip
      156
    5. 5
      Steven P.
      129
  • Tell a friend

    Love Neowin? Tell a friend!