View previous topic :: View next topic |
Author |
Message |
alythcott -
Joined: 16 Jul 2003 Posts: 13
|
Posted: Thu Aug 14, 2003 10:57 pm Post subject: Script error |
|
|
<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 |
|
|
alythcott -
Joined: 16 Jul 2003 Posts: 13
|
Posted: Thu Aug 14, 2003 11:45 pm Post subject: |
|
|
<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 |
|
|
Mnet:Web -
Joined: 05 Nov 2002 Posts: 24 Location: UK, England
|
Posted: Fri Aug 15, 2003 12:01 am Post subject: |
|
|
Well the second one is correct for anyone looking _________________ -- Miles
www.mnetweb.co.uk
And..
www.phphelp.com (offical administator) |
|
Back to top |
|
|
|
|
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
|
|