Jump to content

[SOLVED] search alike matches


jakebur01

Recommended Posts

Hey, I put a field on my homepage for users to be able to type in two or three word phrases and products will display simalar results.

 

Here is my current code:

$conn = db_connect();
  $sql = "SELECT * FROM books ";
$sql .= "WHERE `No` LIKE '%$mysearch%' ";
$sql .= "OR `description` LIKE '%$mysearch%' ";
$sql .= "OR `title` LIKE '%$mysearch%' ";
$sql .= "OR `author` LIKE '%$mysearch%' ";
$sql .= "OR `isbn` LIKE '%$mysearch%' ";

 

Is their something I might could use in place of this that might would be a little more leniant? This code above is a little to strict.

 

 

Link to comment
https://forums.phpfreaks.com/topic/62596-solved-search-alike-matches/
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.