I'd like to be able to filter the following data based on the companyID column:
companyID | title | address
1 a a
1 b b
1 c c
2 d d
3 e e
Here is my sql query but it didn't work.
$ID = $_GET['id'];
$valueToSearch = $_POST['valueToSearch'];
$query = "SELECT * FROM table WHERE companyID = '$ID' CONCAT(`title`) LIKE '%" . $valueToSearch ."%'";