![]() |
Sergey Kornilov admin 5/6/2014 |
Could you elaborate a little bit what causes the trouble? |
P
|
pmorenoc07 author 5/7/2014 |
Could you elaborate a little bit what causes the trouble? Were you able to run this code? If yes, are there any error messages?
|
![]() |
Sergey Kornilov admin 5/8/2014 |
Instead of executing the query you may want to print it on the page to see what might be wrong. $sql = "INSERT INTO invoicedetails(id_invoice, start_date, end_date item, price) values ('".$values['id']."' ,'2014-05-1', '2014-05-5','item name', 80)";
|
W
|
wpl 5/8/2014 |
Ok I inserted this code in Add event Before record added if I do a simple sql lake this one it works $sql = "INSERT INTO invoicedetails(id_invoice, start_date, end_date item, price) values ('".$values['id']."' ,'2014-05-1', '2014-05-5','item name', 80)"; CustomQuery($sql); The problem is when I try to SELECT values FROM another table with condition. I was reading about DAL but I confused how to implemented here or if there is another way to do it. Any clue will be good.
|
P
|
pmorenoc07 author 5/9/2014 |
Hi, I think you have to be careful with the number of arguments you supply to the insert statement.
|