T
|
thesofa 10/19/2008 |
Use the Add Page, After Record Added custom event, I assume the field 'contactID1' is to be filled in the master table? |
F
|
frphilip author 10/19/2008 |
Hi Thesofa, you're so kind <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=34091&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
|
J
|
Jane 10/20/2008 |
Hi, global $conn; $sql = "update othertable set joinedfield=".$vales["joinedfield"]." ... "; db_exec($sql,$conn); unset($vales["joinedfield"]); |
F
|
frphilip author 10/20/2008 |
Hi Jane, |
J
|
Jane 10/22/2008 |
do I well understand ?
|
F
|
frphilip author 10/26/2008 |
Hi, global $conn, $values_FP;
global $conn, $values_FP;
|
G
|
gdkoduro 10/30/2008 |
Hi, here is the complete soluce, if somebody is interested : Event before add global $conn, $values_FP;
global $conn, $values_FP;
|
F
|
frphilip author 10/30/2008 |
Hi Darkwa, |
G
|
gdkoduro 10/30/2008 |
Hi Darkwa, Nice, it seems that we are working on the same kind of project, a contact management <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=34593&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> Well, what is your issue ? is there any error message ? $champs is the array in which I stored all datas from the sql query SHOW COLUMNS FROM contact. And 'Fields' is the column containing the names of all the fields of the 2nd table. If you want, the solution in my post is built in a 'test' project, with only 3 tables, only for testing. I can send it to you if it may help. ++
|
J
|
Jane 10/31/2008 |
Hi, ... while ($fields_alias=mysql_fetch_array($res)) { $idClientInfo_TableField=$fields_alias['idClientAppt']; // get the name of the field in the table $idClientInfo_FormField=$fields_alias[$idClientAppt_TableField];// get the name of the field in the form ... |
G
|
gdkoduro 10/31/2008 |
Hi, try to edit your code in the following way (see my changes in Bold):
|
F
|
frphilip author 11/1/2008 |
Hi Darkwa |
J
|
Jane 11/5/2008 |
darkwa, |