Whether it is incrementing or not the query still needs to be changed... either one of these would work for auto increment:
Code:
$query = "INSERT INTO pitman(id, f_name, postcode, tel, mobile, email, course, pdate) VALUES (null, '$f_Name', '$postcode', '$tel', '$mobile', '$email', '$course',NOW())";
Code:
$query = "INSERT INTO pitman(f_name, postcode, tel, mobile, email, course, pdate) VALUES ('$f_Name', '$postcode', '$tel', '$mobile', '$email', '$course',NOW())";
If you are keeping track on your own you need something liek this:
Code:
$query = "INSERT INTO pitman(id, f_name, postcode, tel, mobile, email, course, pdate) VALUES ('$id', '$f_Name', '$postcode', '$tel', '$mobile', '$email', '$course',NOW())";
Bookmarks