your first PHP is so complex.
Do you get any error message? Make sure the database is connected.
Also, your PHP file does not grab the input value at all. Please refer to "PHP Manual - Variables from outsite PHP" [
http://my2.php.net/variables.external ]
Also your SQL query is not correct, try to replace this line:
PHP Code:
$sql = "INSERT INTO personnel (firstname, lastname, nick, email, salary)
VALUES ('$first','$last','$nickname','$email','$salary')";
With this line:
PHP Code:
$sql = "INSERT INTO personnel (firstname, lastname, nick, email, salary)
VALUES ('" . $first . "','" . $last . "','" . $nickname . "','" . $email ."','" . $salary . "')";
Hope this helps.