After echoing the variable, i could see that the slashes ARE definitely being added- but even when I do it this way the slashes are lost once the value is inserted into the table. In my other project I can see the slashes in the table fine (using the comand line or phpMyAdmin, so i know it's not a problem with them just not being displayed). I'm very new to database programming, so I'm sure it could be a few things- but after echoing the variable directly before adding it and seeing the slashes there, I just have no idea what it could be. Is there some kind of setting that makes mysql automatically remove the slashes on entry? I don't remember doing anything differently when creating this DB than when I created the one that works fine. Could someone please help me out??