$ARG = 'Computer';
$ARG = '%'.$ARG.'%';
echo $ARG; //Shows &Computer%
$sql = "SELECT * FROM listings WHERE title LIKE '.$ARG.' ";
$sql = "SELECT * FROM listings WHERE title LIKE '%Computer%'";
I get a result with the bottom query but not the top. Is my quotes wrong?
Thanks