|
-
Jun 26th, 2008, 10:55 PM
#1
Thread Starter
Frenzied Member
stripslashes cut off data
This is supposed to be simple, but still.....
When saving a value to the database I use addslashes (so test'er become test\'er) ... no problem there.
But when I read it back I get this....
echo $row->$value = tes
echo stripslashes($row->$value) = tes
uuuurgh..drive me bonkers. I also checked get_magic_quotes_gpc(), and then add or stripslashes.
Dont want to edit my php.ini as I'm not sure where I will host this site yet.
Last edited by StrangerInBeijing; Jul 4th, 2008 at 11:40 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|