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

Posted by George B on 08/03/05 20:57

Jay Blanchard wrote:
> [snip]
> $query = "INSERT INTO user (name,password) VALUES
> ($username","$password")
>
> would do the job but, it dosent. It gives a
>
> Parse error: syntax error, unexpected T_VARIABLE in C:\Program
> Files\Apache Group\Apache2\htdocs\php\login\registration_action.php on
> line 15
> [/snip]
>
> $query = "INSERT INTO user (name,password) VALUES
> ("'.$username.'","'.$password.'") ";
>
> Try that... should work. your query syntax is mangled.

Nope, now it gives


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in
C:\Program Files\Apache
Group\Apache2\htdocs\php\login\registration_action.php on line 15

 

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

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