N
|
nix386 author 5/29/2008 |
Anyone?! |
J
|
Jane 5/29/2008 |
Hi, global $conn; if (@$_REQUEST["editid1"]) { //select records from detail table $str = "select * from DetailTable where Name='".$_SESSION["DetailTable_masterkey1"]."'"; $rs = db_query($str,$conn); while($data = db_fetch_array($rs)) { //print selected records echo "name: ".$data["name"]; echo "date: ".$data["date"]; echo "reply: ".$data["reply"]; } }
|
N
|
nix386 author 5/29/2008 |
Thanks Jane, this might just do......now just wrestling with formatting the output to look right, it's adding the values but to the top of the view page which looks a little unusual. Is there a way to get the printed values into the context of the page i.e the view table? Hi, you can create master-detail relationships between these two tables. Then add custom event on the view page of master table and print all detail records in this event. Here is a sample event: Also you can add link to the add page of detail table in this event if needed. |
J
|
Jane 5/29/2008 |
Hi, |