Script error

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
alythcott
-


Joined: 16 Jul 2003
Posts: 13

PostPosted: Thu Aug 14, 2003 10:57 pm    Post subject: Script error Reply with quote

<HTML>
<?php
$db = mysql_connect("localhost", "root","");
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>



[b]Why am i getting this error?[/b]

Parse error: parse error, unexpected T_STRING in C:\Program Files\Abyss Web Server\htdocs\datain.php on line 6
Back to top View user's profile Send private message
alythcott
-


Joined: 16 Jul 2003
Posts: 13

PostPosted: Thu Aug 14, 2003 11:45 pm    Post subject: Reply with quote

<HTML>
<?php
$db = mysql_connect("localhost", "root","");
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>
Back to top View user's profile Send private message
Mnet:Web
-


Joined: 05 Nov 2002
Posts: 24
Location: UK, England

PostPosted: Fri Aug 15, 2003 12:01 am    Post subject: Reply with quote

Well the second one is correct for anyone looking
_________________
-- Miles

www.mnetweb.co.uk
And..
www.phphelp.com (offical administator)
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group