Hello i have this simple query
$query = "SELECT id FROM `client` where name= ".$user_name;
Now the query is printed
select id from client where name = Bob;
when in fact it should be
select id from client where name = 'Bob';
how can i add single quotes in the php variable?