RE: [PHP] Parse error

From: Date: Tue, 14 Jan 2003 16:32:18 +0000
Subject: RE: [PHP] Parse error
Groups: php.general 
Request: Send a blank email to php-general+get-131580@lists.php.net to get a copy of this message
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',) You are missing a ";" on the end of this, plus you need email and salary variables in the VALUES list, plus the list shouldn't end with a comma. Mark

« previous php.general (#131580) next »