Stai usando strstr allo stesso modo di substr , dove la stringa contiene ABC .
SELECT *
FROM table
WHERE Date > :FromDate
AND Date < :EndDate
AND col1 LIKE '%$string%';
Se vuoi cercare una stringa dove i primi caratteri sono ABC , usa:
SELECT *
FROM table
WHERE Date > :FromDate
AND Date < :EndDate
AND col1 LIKE '$string%';
stristr , tuttavia, sarebbe tutta un'altra storia.