I write this query in PHP.
Example
$name='MIKE & JOHN';
$query = "DELETE * FROM `user` WHERE `name` = '$name'";
When it actually executes it shows like below...
echo"$query";
Output:-
DELETE * FROM `user` WHERE `name`= 'MIKE';
As the output shows after MIKE, they ignored the whole sentence. Now how to solve this problem?
Pls, help guys thanks in advance.