| Index
» Projects
» phpMyEdit
» Forum
» tables relationship issue |
 |
Anderson
Joined: 05 Mar 2009
Posts: 2
Posted: 2009-03-05 05:36
Back to top
Reply with quote
|
First of all I would like to apologize for my poor Brazilian English :) and to present myself as an excited user of this wonderfull piece of code that is pme.
I am encountering difficulties on how to solve a problem and after searching the forum for about 2 hours decided to ask for help.
I got 2 tables tbCustomers and tbContacts, once a customer can have n contacts i added a foreign key idCustomer in tbContacts to make a relationship.
My doubt is: There's a way to add a subform to pme add view, that when i add a record it executes a function similar to the more button, of pme interface, on the tbCustomers, then get the mysql_insert_id of the tbCustomers inserted record and insert a new record into tbContacts using the retrivied id as value for idCustomer?
Thanks in advance.
Anderson
|
|
Post new topic
Reply to topic
|
|
|
|