note 102373 rejected from function.addslashes by danbrown

[email protected] Thu, 10 Feb 2011 12:28:06 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: st dot todorov9 at gmail dot com 

----

I want to insert into db for example 
$a= 'qwe"qwe"qwe';
$a = addslashes($a);
But when I insert $a in my db i see    qwe"qwe"qwe    i want to be qwe\"qwe\"qwe 
can you tell me how to do that