Re: Write from form to DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux