<?php
$findWhat = "ODFKDOK";
$findWhere = "tttttK";
sprintf("SELECT `Company_Name`, `Address1`, `Address2`, `Address3`, `Town`, `County`, `Post_Code`, `Telephone`, `URL`, `SIC_Code`, `SIC_Description` FROM `Data1` WHERE (company_name like '%%s%' or `SIC_Description` like '%%s%') and (`Town` like '%s%' or `Post_Code` like '%s%' )", $findWhat, $findWhat,$findWhat, $findWhat);