mysql_real_escape_string()

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

ppkkyaw
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Aug 21, 2012 4:25 pm

mysql_real_escape_string()

Postby ppkkyaw » Tue Oct 29, 2013 4:48 am

hello
I would like to ask for something
here is my table

ID Name Brand
1 a Toyota
2 b Honda
3 c Toyota
4 d Honda
5 e Nissan

when I save the record, I use mysql_real_escape_string() on ID and Brand because I will only retrieve data with ID and Brand.

the question is what will be happen if I don't use mysql_real_escape_string() on Name? I mean security. pls tell me guys

Return to “PHP coding => General”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

cron