Master Details insert misses columns?

QuestionsMaster Details insert misses columns?
Gary Brett asked 10 years ago

Good afternoon Abu, I took the master-detail.php file and edited to reflect my own database/tables.

The master / detail displays correctly but wont insert 2 columns I need. It creates the record with the pk but doesn't add subject or note, cannot for the life of me work out why? I have pasted full code over here if you have time.. http://pastebin.com/m3rqtXJh

function add_client(&$data)
{
$id = intval($_GET["rowid"]);
$data["params"]["client_id"] = $id;
$data["params"]["subject"] = $subject;
$data["params"]["note"] = $note;

}

function update_client(&$data)
{
$id = intval($_GET["rowid"]);
$data["params"]["client_id"] = $id;
$data["params"]["subject"] = $subject;
$data["params"]["note"] = $note;
}

Regards

Gary

1 Answers
Gary Brett answered 10 years ago

Please ignore Abu, I seen my mistake now and fixed 🙁

Your Answer

11 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?