View Single Post
  #2 (permalink)  
Old 22-10-2004, 05:49 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,373
Rep Power: 119
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
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.
__________________
LiewCF | Malaysia Bloggers Forum

Last edited by lcf; 22-10-2004 at 05:56 PM.
Reply With Quote