12-08-2007, 10:36 PM
|
#22 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
|
You can also, if you know the input can only be alphanumeric, is to build a function (which could be used for other things as well), which replaces all characters except any alphanumeric ones. However, out of addslashes() and mysql_real_escape_string(), the latter is definitely the best choice.
|
|
|