Since I'm a newbie I'm posting this here.
I have this code:
<?php
if($submit)
{
$db = mysql_connect("localhost", "*******","*********");
mysql_select_db("learndb",$db);
$sql = "INSERT INTO personnel (firstname, lastname, nick, email, salary)
VALUES ('$first','$last','$nickname','$email','$salary')";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n";
}
else if($update)
{
$db = mysql_connect("localhost", "*******","'**********");
mysql_select_db("learndb",$db);
........ and so on
and I get this message in the webbrowser:
Notice: Undefined variable: submit in C:\Server\Apache2\TestLab\abc\addedit.php on line 4
Notice: Undefined variable: update in C:\Server\Apache2\TestLab\abc\addedit.php on line 13
These "variables" on line 4 and 13 are {-symbols...
Anyone that now what the problem might be?