View Single Post

  #1 (permalink)  
Old 03-27-2008
ndlarsen
 
Posts: n/a
Default addslashes/mysql_real_escape_string

Hello.

It's been a while since I used php. Since then magic quotes has been
deprecated and will be removed when php 6.0 hits. My question is, what
should I be using when submitting data to a database instead? Which is
better for security reasons, addslashes() or mygql_real_escape_string()?

Thanks you.

Regards

ndlarsen
Reply With Quote