Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  tables relationship issue

phpMyEdit General     tables relationship issue
Post new topic   Reply to topic    
 
Anderson     Joined: 05 Mar 2009   Posts: 2  
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy