RE: [PHP] Code check please
| From: | Jason Murray | Date: | Thu, 21 Jun 2001 00:36:49 +0000 |
| Subject: | RE: [PHP] Code check please | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-54651@lists.php.net to get a copy of this message | ||
> 2. Your SQL is a bit out of whack. The "SET" clause is used for
> UPDATEs, not INSERTs.
>
> Instead, try:
>
> $sql = "INSERT INTO tabell (fornamn, efternamn, email) VALUES (" .
> "'$fornamn', '$efternamn', '$email');";
MySQL actually lets you use SET for INSERTS, though.
Jason