I have this code
$myname="דוגמא";
$sql="insert into tbl_users values (" . $myname . ")";
$command = $con->prepare($sql);
$command->execute()
now if i write the $myname
like this
$myname="\'דוגמא\'";
it works good otherwise the results in db looks ??? or gibberish.
The db and table and columns all set to 'hebrew' Collation.
Now my question is how can i do this in normal way not like this with slashes?