You are here: Re: [PHP] Write from form to DB « PHP « IT news, forums, messages
Re: [PHP] Write from form to DB

Posted by Richard Davey on 08/03/05 21:04

Hello George,

Wednesday, August 3, 2005, 6:50:07 PM, you wrote:

GB> $query = "INSERT INTO user (name,password) VALUES ($username","$password")

$query = "INSERT INTO user (name, password) VALUES ('$username',
'$password')";

And don't forget to validate your user input before slamming it
directly into your database.

Best regards,

Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
Zend Certified Engineer
"I do not fear computers. I fear the lack of them." - Isaac Asimov

 

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

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