Re: problems inserting in specific row
| From: | Chris | Date: | Tue, 21 Nov 2000 22:02:02 +0000 |
| Subject: | Re: problems inserting in specific row | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4628@lists.php.net to get a copy of this message | ||
First of all, what error? Makes it a lot easier :)
Second,
$query = "insert into et01app_gen(lisalvation,lireasons,lifamilylife,lileadership,statusinterview) values('lisalvation','lireasons','lifamilylife','lileadership','statusinterview') where username=\'username\'";You don't need to escape 'username' because you're using single quotes for each element, and using double quotes around the whole lot. Third, it should be $username, otherwise it looks for the username=username, not what the person put into the form. Regards, ------------------------ Chris Smith http://www.squiz.net