Reply to Re: single quotes

Your name:

Reply:


Posted by Rik on 04/24/07 18:51

Iván Sánchez Ortega wrote:
> charlespb69 wrote:
>
>> I am new to php so this might be a real simple question. I have a
>> form that users are able to input information into and the information
>> goes into a mysql database table.. But single quotes (apostrophes)
>> are giving me problems. What can I do about this?
>
> RTFM, and use mysql_real_escape_string() when appropiate. That
> means "always".

I thought always, always, always :P

(Not true though, often you can use intval()/floatval(), possibly aided
by foreign key checks.)

--
Rik Wasmus

[Back to original 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

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