How can I combine post to two different tables with one form?

I am trying to create a "phantom" record in a table to be used later in a report. How can I create a form and properly $_POST to two different tables? Thanks for any suggestions!

In POST processing, just do the insert to one table, followed by the insert to the second table. I don't understand where you are getting stuck.
Sometimes when we do an insert, we need the auto-generated ID from the newly created record as a "foreign key" for the record created in the second insert. MySQL has a nifty solution for that. The specific code depends on whether you are using the mysql, mysqli or PDO database connection.

Similar Messages

  • How to fill the data of two different tables into one?

    Hi Experts,
    I have two tables named CDHDR and CDSHW(structure). I have extracted the  data from these two tables through two function modules named CHANGEDDOCUMENT_HEADER and CHANGEDOCUMENT_POSITION. Now I have the data in to different tables.
    These two tables neither has relationship with each other through any field nor have any field which exist in both. Can anyone tell me in this case what should be the process to take the data of both the tables into one table. How can I match the record of one table to another?
    thanks a ton in advance.
    Edited by: Moni Bindal on Apr 28, 2008 4:16 PM
    Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:42 PM

    Hye Bindal,
      without a relation, it is not possible to club the data of 2 internal tables. More over it depends on the requirement as to y u should club to non related quantities in an internal table.
    if you wish to do so, one thing is it has internal table which includes the strucute of the 2.
    data: begin of ty_out,
              first type first_structure,
              second type second_structure,
             end of ty_out.
    data: itab type standard table of ty_out.
    data: wa type ty_out.
    loop into it1 into wa1.
    move corresponding wa to wa1.
    append wa to itab.
    endloop.
    loop into it2 into wa2.
    move corresponding wa to wa2.
    append wa to itab.
    endloop.
    now the internal table itab will have all the contents of it1 and it2.
    <REMOVED BY MODERATOR>
    Thanks,
    Imran.
    Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:43 PM

  • We have itunes music on a computer, an ipod nano, and a new ipod touch under two different accounts. How can we combine the music from both accounts to one device?

    We have itunes music on a computer, an ipod nano, and a new ipod touch under two different accounts. How can we combine the music from both accounts to one device?

    There is no "adding" a device.  Simply plug the iDevice into the computer.  iTunes should automatically detect the device when it is connected.
    iTunes can sync/manage as many iDevices as you want... there is no 1 device limit.

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • How can I transfer songs from two different itunes?

    I want to transfer songs from my brother's itunes library to my shuffle, but when I plug it in his computer, a message saying that his library is not linked to my library (or something to that extent) and whether I would like to replace the songs. If I click yes, all my existing songs are replaced with HIS songs. If I click on NO, the Shuffle icon does not appear at all and I cannot transfer any of his songs to my shuffle. How can I transfer songs from two different computers into my shuffle without replacing any of my existing music?
    Shuffle   Windows XP  
      Windows XP  

    You'll have to setup your iPod to manual instead of automatic update (I'm not sure, though, if it works with the Shuffle as well).
    Alexander.

  • How can I use music from two different iTunes accounts?

    how can I use music from two different iTunes accounts?

    If you mean iTunes Store accounts, there's really nothing for you to do. Just add the tracks to the iTunes library and play them. Music purchased prior to late-2009 will been to be authorized, though. Pull down Store > Authorize... and type the credentials of the Apple ID used to buy the tracks.
    If you mean something else, please describe in more detail.

  • How to compare the contents of two different tables

    hello. can somebody give me an idean on how to compare the contents of two different tables in mysql?
    example, i have a table named Main List and a table named New List.
    The contents of the New List should be compared to the contents of the
    Main List, to check if they are equal. I don't have any idea how to manipulate
    this data. Hoping for your help. Thanks.

    it is better to comapre it using java.. try get the resultset first and store that in collections then comapre the two collections

  • How can I order 2 or 3 different cards with iPhoto ?

    How can I order 2 or 3 different cards with iPhoto ?

    See this document on the details for shipping of Apple print products:
    http://store.apple.com/us/help/print_products
    There is no way to combine orders for different products into one.

  • How to Highlight the CURRENT RECORD in a Table with Report Form

    Hi,
    I have created a Table with Report Form....let suppose the table is - EMP
    Report page - 1
    Form page - 2
    Now, when I do Create / Update on Page 2,....the control is back on Page1.
    Suppose in the Report Page (Page1)..we have 10 records....NOW how should I highlight the CURRENT RECORD in Page 1 with some color to identify the record which I have updated/created just now...
    Thanks,
    Deepak

    Hi Deepak,
    You could do that with a custom report template. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:175]
    Go to Shared Components, Templates and create a new Report template as a copy of your existing one. Then edit your template. In the above example, the Column Template 1 setting was:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data"&gt;#COLUMN_VALUE#&lt;/td&gt;I copied this into the Column Template 2 setting and updated the Column Template 1 setting to:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red; color:yellow;"&gt;#COLUMN_VALUE#&lt;/td&gt;I then set the Column Template 1 Condition to: Use Based on PL/SQL Expression
    and the Column Template 1 Expression to: '#EMPNO#' = '&P178_EMPNO.'
    (In my example, P178_EMPNO is the single item on the linked to page.
    Save those changes and go to your report and change its template to the new one. As long as a selection has been made and P178_EMPNO has a value, the condition will make sure that the report uses the first template for the row with the matching EMPNO value. All other rows get the template from Column Template 2.
    Andy

  • How can i use eyedropper between two different art board.

    Hi
    How can i apply the same color for the images in two different art boards with eyedropper.
    I am trying to apply the same color from the image in one art board to another image in another art board.
    Can any one help me please. Thanks
    Steve
    I am using Mac

    apresslink,
    Presuming you are unable to use the Eyedropper Tool normally, in other words keep the target object selected while you pick up the colour, by having the Artboards open in adjacent windows to ClickDrag between (I am still with 10 which may explain at least part of my ignorance for which I apologize):
    Until someone presents a smarter solution, you may cheat and create a carrier object beside the  source object, drop the colour in that, cut and paste it to be beside the target object, and drop the colour there. With multiple colours to drop multiple times, you may create a palette to hold them, to use just like a painter working on several canvases at the same time. Or you could paste diminshed copies of the source objects.

  • How can I charge shipping for two different products each with a different shipping method?

    I'm selling two different products, one is by priority shipping through USPS, the other is just a flat fee of $3.00.  Shipping options appear when either one is the only product in the shopping cart.  If there is one of each product, then no shipping is charged.  Is it possible to have two different products and two different methods of shipping in the shopping cart?
    www.antarcticempire.com  vintage teacups are priority mail   photo prints are $3 flat fee.
    Thank you for any help.

    Thank you for posting.
    There is no out of the box solution to add more than 1 shipping option in the shopping cart. However, there is a work around for this, bit complex but achievable. You need to use multi-lingual site to do so. If you need more info on how to achieve this, please log a ticket and mention this forum post in it.
    Cheers,
    Aishvarya Raj Rastogi

  • How Can I Combine Podcasts from Two Computers Into One ?

    I download podcasts on two computers - my home PC and my work/travel laptop. My IPod syncs to my home PC. What I would like to be able to do is transfer all the podcasts I have downloaded from my laptop to my home PC (as my internet speed at home isn't great), then sync it all to my IPod. Is this possible ?

    Well it works.....sometimes. It works OK with audio podcasts, but not with *.mov video podcasts. It DOES work with *.M4V video podcasts. I found this out by trying to add all the Tiki Bar TV files, and only the Boomerang episode transferred OK.
    The strange thing is this - while the *.MOV vpodcasts don't show up in the Podcast window in ITunes, they DO transfer over and show up in Library>Genre 'Podcasts'>. How can I force them to appear in the Podcasts window ?
    Cheers
    Blewyn

  • How can I select events from two different channels?

    Hi everybody, I have another question! :)
    When processing events in config.xml, using a CQL sentence, Eclipse compiler doesn't allow me to select more than one event.
    I paste here my app.context.xml and my config.xml:
    app.context.xml:
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horseInputChannel" event-type="HorseEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanInputChannel" event-type="GunmanEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanOutputChannel" event-type="GunmanEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    And here you are the two config.xml, I have tried two different ones and none of them runs.
    The first one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel
            ]]>
    </query>
    <query id="gunmansRule">
    <![CDATA[ select * from gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    As you can see, I use here TWO CQL sentences from the two channels that are defined in app.context.xml.
    The other one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel, gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    I use here only ONE CQL sentence in which I try to get events from the two channels that are defined.
    None of them works.
    Can anybody help me?
    Thank you!

    Hi! Here you are the files you required:
    SevenHorses.context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageHorse" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageGunman" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horsesInputChannel" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="horsesInputChannel2" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    </beans>
    config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select message from horsesInputChannel2 where message like "(gunman)"
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    Thanks!

  • How can I sync iPod to two different computers?

    I have two computers. One computer has a few songs, the other has a few. I can't put both computers songs on my iPod without having to sync to one computer and erase all my current songs. Both computers are logged onto the same iTunes account. How can I fix this?

    I have two computers. One computer has a few songs, the other has a few. I can't put both computers songs on my iPod without having to sync to one computer and erase all my current songs. Both computers are logged onto the same iTunes account. How can I fix this?

  • How can I alphabetize my bookmarks? How can I blend bookmarks on two different computers?

    How can I alphabetize my bookmarks?
    How can I share my bookmarks on my laptop and desktop?

    Hi apdavis21,
    You should take a look at the [https://support.mozilla.org/en-US/kb/how-do-i-use-bookmarks Boomarks Knowledge Base article]. It will show you how to manage all of your existing bookmarks.
    If you are looking to share bookmarks between computers, you should check out [https://support.mozilla.org/en-US/kb/what-firefox-sync Firefox Sync]. It will allow you to synchronize all of your Firefox installations for a seamless browsing experience.
    Hopefully this helps!

Maybe you are looking for

  • How can i get the SSD card to show up on my desktop on my MBA?

    Can anyone tell me how to get the SSD card on my MBA to show up on my desktop?

  • Can't figure out Sprites

    Okay so my partner and i have been working on this project for a while now and we are stuck with two thing. First we can't get the enemy sprite to go into the enemy picture box. Second we can't get the sprite sheet to shift down. We have tried multip

  • Question... Need upgrade to play video games on the hp mini

    http://www.shopping.hp.com/webapp/shopping/computer_can_series.do?storeName=computer_store&category=... I just bought this cute computer and i want to play sims 3 but it says i need to upgrade my graphics card. Where can i get it...? Does anyone else

  • [Solved] Is there any good alternative to nethogs?

    Hi people! Nethogs is a good program to see the traffic speed but it blinks and doesn't show speed correctly. I mean the output is not accurate, not like in netspeed-applet for Gnome. I need something very similar to nethogs which doesn't blink and d

  • FileChooser fails after installation

    I have been using the JDK 1.5.0 update 6 for a while, and composing with NetBeans. Almost everything works fine: web start, command line, NetBeans (mostly). However, anytime I try to bring up a file chooser with Java, the Java program seems to go int