jdubwelch Posted August 6, 2007 Share Posted August 6, 2007 magic quotes are enabled on my server. I'm storing a blog into a database and when i use php to print it out i get question marks the like one below. What do i need to do? I've tried addslashes() but that didn't help at all. Is there something in between the database and php that i need to do? If i paste the text right into the db, it doesn't have the "[?]" thing code writing the text to db $blog = nl2br(trim($_POST['blog'])); $query = "INSERT INTO `blogs` (`team_id`, `title`, `blog`, `blogger_id`, `date_posted` ) VALUES ('$team_id', '$title', '$blog', '$blogger_id', '$timestamp');"; Quote Link to comment https://forums.phpfreaks.com/topic/63498-need-help-funky-quotes/ Share on other sites More sharing options...
effigy Posted August 6, 2007 Share Posted August 6, 2007 They're probably smart quotes; see these topics: http://www.phpfreaks.com/forums/index.php/topic,111649.0.html http://www.phpfreaks.com/forums/index.php/topic,146911.0.html Quote Link to comment https://forums.phpfreaks.com/topic/63498-need-help-funky-quotes/#findComment-316736 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.