How to write a query(filter product)?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
Good day,there is a problem,let's have a products table,which requests come and go LIKE the validation requests for one.Let's say the first request
$query = "SELECT * FROM products WHERE name_brand LIKE %товар1% OR name_brand LIKE %товар2%

And then this same query is the query in another column
$query = "SELECT * FROM products WHERE name_brand LIKE %товар1% OR name_brand LIKE %товар2% ( price BETWEEN MAX PRICE AND MIN PRICE )the second query

How to make a second request to output data is two queries,and one write to the second request, OR,for example, are given 2 request if the write AND the query will not be executed.
by | 16 views

1 Answer

0 like 0 dislike
So and what do you have, and or or? What do you mean "will be displayed 2 query and what the query won't be executed"?
by

Related questions

0 like 0 dislike
2 answers
asked Apr 21, 2019 by Aleksandr_Markelov
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jun 8, 2019 by mrusklon
0 like 0 dislike
1 answer
asked Jun 8, 2019 by oleja1ee7
110,608 questions
257,187 answers
0 comments
40,796 users