You are here: Re: VALIDATING MANDATORY FIELDS USING PHP NOT JAVA SCRIPT!?! « All PHP « IT news, forums, messages
Re: VALIDATING MANDATORY FIELDS USING PHP NOT JAVA SCRIPT!?!

Posted by Starbuck on 05/05/06 03:13

"ED" wrote:
> Hi Starbuck,
> Just as an aside, the line:
> mysql_query("INSERT INTO table VALUES($firstname, $lastname)");
> leaves you wide open to SQL injection attacks.
>
> You need to safely escape the values before inserting into the DB, look at
> mysql_real_escape_string() or mysql_escape_string() depending on the
> version of PHP you are using.
>
> cheers,
> ED

Hi Ed.

Yeah, I haven't really looked into the best ways to write data back into the
database yet. Ill definitely look into it. Thanks for your advice.

 

Navigation:

[Reply to this 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

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