You are here: Re: [PHP] mysql + addslashes + stripslashes « PHP « IT news, forums, messages
Re: [PHP] mysql + addslashes + stripslashes

Posted by Drewcore on 05/16/05 21:30

> I do suspect though, that the problem lies with how I am using addslashes
> and how I am not using it. Any definitive help would be much appreciated.

i'm not an expert at this, but i think that since you're using mysql
to store your data, you shouldn't use addslashes() and use
mysql_real_escape_string() instead...

http://us4.php.net/manual/en/function.mysql-real-escape-string.php

but that's just me. i would run any user input through that function
to make sure that it's 'safe' to put in your database. of course, i
would also be checking the input to make sure that it safe by other
means as well. hope that helps.

-drew

--
dc .. drewcore.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация