$name='john_doe';
$name=str_replace('_','\_',$name);
$sql="select * from table where customer='".$name."'";
in the table, i have john_doe, john_smith, etc.
I am not getting the expected result?
$name='john_doe';
$name=str_replace('_','\_',$name);
$sql="select * from table where customer='".$name."'";