non ho ben capito ma se ho interpretato bene...

Codice PHP:
SELECT record2 FROM tabella WHERE record1 LIKE '%$varstringa%'