Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  tables relationship issue

phpMyEdit General     tables relationship issue
Odoslať novú tému   Odpovedať na tému    
 
Anderson     Založený: 05.03.2009   Príspevky: 2  
Príspevok Zaslal: 2009-03-05 05:36
Návrat hore  Odpovedať s citátom     

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

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov