Re: Code check please
| From: | Sebastian Wenleder | Date: | Wed, 20 Jun 2001 21:14:41 +0000 |
| Subject: | Re: Code check please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54612@lists.php.net to get a copy of this message | ||
At 18:00 Uhr +0200 20.06.2001, Andreas Skarin wrote:
I've tried to get this working for over an hour now, and it still won't. I don't even get an error message to help me find the problem so I was hoping that someone could check my code for me.[snip]
$sql = "INSERT INTO tabell SET" .
"fornamn ='$fornamn'," .
"efternamn='$efternamn'," .
"email='$email';";
Hi Andreas
I'd use this SQL-query:
$sql = "INSERT INTO tabell \
(fornamn,efternamn,email) \
VALUES(".$fornamn.", \
".$efternamn.", ".$email.")";
Hope it works for you!
Best,
Sebastian