Forum Moderators: coopster

Message Too Old, No Replies

Allowing currency symbols with mysql real escape string

Allowing currency symbols

         

optik

5:48 pm on Jan 16, 2009 (gmt 0)

10+ Year Member



I have a user input filed that I want to accept $,£ and € symbols but mysql_real_escape_string is removing them, how can I properly protect myself with out using mysql_real_escape_string or is there another way?

optik

5:55 pm on Jan 16, 2009 (gmt 0)

10+ Year Member



sorry my fault I hadn't escaped the dollar sign in a previous ereg_repalce statement

coopster

10:27 pm on Jan 16, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It's funny it didn't throw an error on you.
Here nor there, glad you got it sorted.