troubleshooting Question

Inserting data into database

Avatar of Nur
Nur asked on
10 Comments1 Solution168 ViewsLast Modified:
Hi experts...

I have a problem in inserting data  which i have four attributes(no_kupon, tarikh,amaun,kasyer) to be insert into a table (resit)

The problem is only 3 attributes can be inserted into a table:
  mysql_query("INSERT INTO  `teksi`.`resit` (`no_kupon` ,`tarikh` ,'amaun') VALUES ( '$_POST[no_kupon]',  '$_POST[tarikh]','$_POST[amaun]');");

when i use this sql to insert 4 attributes the data failed to be sent into database
  mysql_query("INSERT INTO  `teksi`.`resit` (`no_kupon` ,`tarikh` ,'amaun',`kasyer`) VALUES ( '$_POST[no_kupon]',  '$_POST[tarikh]','$_POST[amaun]',$_POST[kasyer]');");

here is my full coding:

Please someone here help me...I only have a day to settle this problem before submission.Thank you
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros