note 102373 added to function.addslashes

[email protected] Thu, 10 Feb 2011 11:59:46 -0800
Newsgroups php.notes
Message-ID <[email protected]>
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
----
Server IP: 69.147.83.197
Probable Submitter: 85.14.29.3
----
Manual Page -- http://www.php.net/manual/en/function.addslashes.php
Edit        -- https://master.php.net/note/edit/102373
Del: integrated  -- https://master.php.net/note/delete/102373/integrated
Del: useless     -- https://master.php.net/note/delete/102373/useless
Del: bad code    -- https://master.php.net/note/delete/102373/bad+code
Del: spam        -- https://master.php.net/note/delete/102373/spam
Del: non-english -- https://master.php.net/note/delete/102373/non-english
Del: in docs     -- https://master.php.net/note/delete/102373/in+docs
Del: other reasons-- https://master.php.net/note/delete/102373
Reject      -- https://master.php.net/note/reject/102373
Search      -- https://master.php.net/manage/user-notes.php