Re: Parse error
| From: | Joseph W. Goff | Date: | Tue, 14 Jan 2003 16:11:48 +0000 |
| Subject: | Re: Parse error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131575@lists.php.net to get a copy of this message | ||
Try this...
$sql = "INSERT INTO personnel (firstname, lastname, nick, email, salary)
VALUES ('$first','$last','$nickname',)";
----- Original Message -----
From: "Brent Lee" <brent.lee@sympatico.ca>
To: <php-general@lists.php.net>
Sent: Tuesday, January 14, 2003 10:02 AM
Subject: [PHP] Parse error
> I'm new to PHP and am slowly learning it. I have the following code that
is
> giving me errors could someone take a look and suggest a fix?
>
> Parse error: parse error in /home/xxxxxxxx/public_html/Info/datain.php on
> line 7
>
> <HTML>
> <?php
> $db = mysql_connect("localhost", "xxxxxxxx","xxxxxxxxxx");
> mysql_select_db("learndb",$db);
> $sql = "INSERT INTO personnel (firstname, lastname, nick, email, salary)
> VALUES ('$first','$last','$nickname',)
> $result = mysql_query'($sql);
> echo "Thank you! Information entered.\n";
> ?>
> </HTML>
>
>
>
>
> --
>
> Thanks
> ______________________________
> Brent Lee
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>