Hi
PLEASE help
I cant get this data to add to the Mysql database Ive added the correct fields in MYSQl just cant seem to get it to work
the form is http://www.interactive-corporation.com/contract/php/files/contract.htm
this send on submit to post.ph
File below I have removed the username and password
HI,
Here is the problem
[php]
$query = “INSERT INTO membership VALUES
(’’,’$Date “,”$FPname” , “$FPsurname”,"$D1" , “$SPname” , “$SPsurname” , “$Address” , “$City” , “$Country” , “.$zipcode” , “$nationality” , “$homephone” , “$mobilephone” , “$Fax” , “$email1” , “$Semail2” , “.$membershiplemgth.” , “.$membershiptype” , “$membershipprice” , “$adminfee” , “$totalprice” , “$deposit” , “$balance” , “$installments” , “$installmentamount” , “$firstpayment.” , "$mtfamount’);
[/php]
Solution:
Your Insert syntax was wrong.
Here is correct syntax.
[php]
INSERT INTO tutorials_tbl
(tutorial_title, tutorial_author, submission_date)
VALUES
(“Learn PHP”, “John Poul”, NOW());
[/php]
I thought this is where you get help.
Ive changed it to please help everyone has to start somewhere
Hey Buddy,
I’m new here so let’s see if i can help out.
Start small with the form/query.
Try this
[php]
always put a [php]or Die(‘my line of code 1020’); [/php] at the end of a mysql query so you know its working or not