stlmike Posted October 9, 2006 Share Posted October 9, 2006 Im pulling some info from the database, and i want to add slashes to it. For some reason it's not adding them in. I got no idea why its not.Is there certin trick i need to do for this? Quote Link to comment Share on other sites More sharing options...
tomfmason Posted October 9, 2006 Share Posted October 9, 2006 Please post an example of your code that you are using to add the slashes Quote Link to comment Share on other sites More sharing options...
stlmike Posted October 9, 2006 Author Share Posted October 9, 2006 Hopely i didnt mess this up typing it hereThanks[code]$test = mysql_query("SELECT object from mytable");while($asdf=mysql_fetch_array($test)){ $gobject = $asdf["object"];$output .= addslashes($gobject);}echo $output; [/code] Quote Link to comment Share on other sites More sharing options...
tomfmason Posted October 9, 2006 Share Posted October 9, 2006 I don't realy see why that would be working. Are there quotes in the text and do you have magic_quotes_gpc turned on?[b]EDIT[/b]I meant wouldn't not would..lol Quote Link to comment Share on other sites More sharing options...
stlmike Posted October 9, 2006 Author Share Posted October 9, 2006 Edit n/m i feel like a moron now.I got my problem resolvedThanks for the help anyways! Quote Link to comment 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.