<?php $string = 'PhysicalAddress:E8-6A-64-DE-48-60PhysicalAddress:04-EA-56-08-E6-8EPhysicalAddress:04-EA-56-08-E6-8FPhysicalAddress:06-EA-56-08-E6-8EPhysicalAddress:04-EA-56-08-E6-92'; $components = str_split($string, 33); $query = "SELECT * FROM table1 WHERE preview LIKE '%" . implode("%'\n AND preview LIKE '%", $components) . "%'"; echo $query;
You have javascript disabled. You will not be able to edit any code.