Re: Write from form to DB
| From: | John Nichel | Date: | Wed, 03 Aug 2005 18:12:17 +0000 |
| Subject: | Re: Write from form to DB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219931@lists.php.net to get a copy of this message | ||
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.Backwards on your quotes Jay. Go home and get some sleep. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com