Jump to content

Archived

This topic is now archived and is closed to further replies.

stlmike

addslashes help

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Please post an example of your code that you are using to add the slashes

Share this post


Link to post
Share on other sites
Hopely i didnt mess this up typing it here
Thanks

[code]
$test = mysql_query("SELECT object from mytable");

while($asdf=mysql_fetch_array($test))


$gobject = $asdf["object"];
$output .= addslashes($gobject);
}

echo $output; 
[/code]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Edit n/m i feel like a moron now.

I got my problem resolved

Thanks for the help anyways!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.