Currently when I perform a search using an HTML form for data in my database, I have the following code:
$result = mysqli_query($con,“SELECT * FROM businesses where name like ‘%$queried%’ or address like ‘%$queried%’ or industry like ‘%$queried%’”);
An example search would be “washington st” which brings up every business on washington street under the “address” column.
But If I did a search like “chipotle mexican grill washington st boston” it would return nothing. Even though the “name” column includes chipotle mexican grill.
Why isn’t it pulling up chipotle on washington st in boston specifically when I type it in?
Please help me!!