V
V
vlad17532020-05-23 20:41:35
PHP
vlad1753, 2020-05-23 20:41:35

How to do a search on a PHP/SQL site?

Hello, you need to do a search on the site ... I
use this option:

$q = "SELECT * FROM `books` WHERE `name` LIKE '%$query%' OR `subject` LIKE '%$query%' OR `autor` LIKE '%$query%' OR `form` LIKE '%$query%' OR `form` LIKE '%$queryWithoutChars%' ";

How can you improve search quality?
Advise some libraries, techniques, examples.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question