I want to update, not overwrite my database!

Morning all,
In Dreamweaver CS4 - I've managed to insert data from my Repeating Region using Dynamic Checkboxes and Text Fields into my MySql database (thanks again to www.DwFAQ.info) , but when I go to insert another/new record, the checkboxes are already selected and the text from the previous entry is showing in the text fields.
Obviously the dynamic fields are reading the data that is already in the database, but how do I send the data from the form to the database, then clear the form for the next use?
I want to update my database with football player stats, and display the running total of games played, goals scored etc on another page, so I need to update the database each time I input data, not overwrite the previous entry.
Should I be looking at the Dynamic input from Dreamweaver, or the MySql data/functions side of things?
Any help or general pointers would be much appreciated!
Many Thanks
Andy

I am still not clear on the total design and workflow.
I would envision a design like this with 3 tables
Player
Match
Player_Match
The Player table stores details about the player not related to any specific match
The Match table stores details about the match not related to a specific player
The Player_Match stores details about a player for a specific match. This would include foreign keys to the other two tables and include attributes like cards, goals_scored, assists, time_played, no_show, etc.
Is this your concept? Are you updating any stats during the game or after the game is complete. If the latter, then you won't really be updating those rows.  If the former, the workflow would be:
Before each game: Insert a new Match row for a new Match. Insert new Player_Match rows for each player as they enter the game using insert behavior. Use the update behavior to update the Player_Match row when there is a goal, card, etc.
>Do I need to send the data from the input form somewhere else,
>which will then update the database, and then the form will be clear
>again when I go into it, or is it to do with the Update/Insert functions in Mysql
Again, if you are using the DW Insert behavior, all of the fields should be cleared. If using the update behavior, they should be populated. We may still not be understanding each other.

Similar Messages

  • I want to update multiple record in database which is based on condition

    hi all,
    I am using Jdev 11.1.2.1.0
    I have one table named(Pay_apply_det) in this table i want to update one column named(Hierarchy) every time and according to change i want to update or i want to maintain my log table named(pay_apply_appr).It based on level wise approval when the lowest person approve the record show on next level but if the second
    level person back it will be show only previous level hierarchy.And when the final approval happen the Posting_tag column of pay_apply_det will be updated too with hierarchy column.
    i have drag pay_apply_det's data control as a table in my .jsf page and add one column approve status in UI .in the approve status i used radio group which return A for approve B for back R for reject through value binding i make it get or set method in it baking bean.
    in backing bean class i have written code
        public void approveMethod(ActionEvent actionEvent) {
            ViewObject v9=new UtilClass().getView("PayApplyDetView1Iterator");
            int h5=0;
            Row rw9= v9.getCurrentRow();
            String x=(String) rw9.getAttribute("RemarkNew1");
            System.out.println(x);
            String z=getR2();
            System.out.println(z);
            if(( z.equals("R") || z.equals("B") )&& x==null)
                FacesMessage fm1 = new FacesMessage("Plz Insert Remark Feild");
                fm1.setSeverity(FacesMessage.SEVERITY_INFO);
                FacesContext context1 = FacesContext.getCurrentInstance();
                context1.addMessage(null, fm1);  
            else{
            ADFContext.getCurrent().getSessionScope().put("Radio",getR2().toString());
            String LogValue=(String)ADFContext.getCurrent().getSessionScope().get("logid");
            ViewObject voH=new UtilClass().getView("PayEmpTaskDeptView1Iterator"); 
            voH.setWhereClause("task_cd='449' and subtask_cd='01' and empcd='"+LogValue+"'");
            voH.executeQuery();
            Row row1= voH.first();
            int h1=(Integer)row1.getAttribute("Hierarchy");
              System.out.println("Login Person Hierarchy on save button press.."+h1);
            ViewObject vo9=new UtilClass().getView("PayApplyDetView1Iterator");
            Row row9= vo9.getCurrentRow();
            if(getR2().equals("A")&& h1!=1)
             row9.setAttribute ("ApprHier",h1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            else if(getR2().equals("B") ) {
                ViewObject voO=new UtilClass().getView("LoHierViewObj1Iterator");
                voO.setNamedWhereClauseParam("QHVO", LogValue);
                Row rowO = voO.first();
               h5=(Integer)rowO.getAttribute("LPrehier");
                System.out.println("Back lower hier..."+h5);
                row9.setAttribute ("ApprHier",h5);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
              else if((h1==1) &&(getR2().equals("A")) )
                      row9.setAttribute ("PostingTag","Y");
                      row9. setAttribute ("ApprHier", h1);
                        row9.setAttribute("IsClaimed","N");
                        row9.setAttribute("ClaimedBy",null);
                        row9.setAttribute("ClaimedOn", null);
              else if(getR2().equals("R"))
                row9.setAttribute ("ApprHier",-1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            BindingContext BC=BindingContext.getCurrent();
            BindingContainer ac=BC.getCurrentBindingsEntry();
            OperationBinding ob=ac.getOperationBinding("Commit");
            ob.execute();
           vo9.executeQuery();
            FacesMessage fm = new FacesMessage("Your Data Successfully Commited..");
            fm.setSeverity(FacesMessage.SEVERITY_INFO);
            FacesContext context = FacesContext.getCurrentInstance();
            context.addMessage(null, fm);
        }here i put my approve status radio value in session variable because i also want to update my pay_apply_appr table which code i written in pay_apply_det IMPL class.
    Every thing is running well when i update single record but when i want to update multiple record then my current row only updated in pay_apply_det but log table( pay_apply_appr) created for all record.
    so is there any solution plz help me.
    thanks
    RAFAT

    Hi Rafat,
    If you are able to insert into, all you need to do is iterate through the rows. For this , before the first IF condition
    if(getR2().equals("A")&& h1!=1)Get the row count using int numRows =vo9.getRowCount(); , and then write it before the IF condition
    if (int i=0;i<numRows;i++} After
    row9.setAttribute("ClaimedOn", null);
            }write vo9.next(); to iterate to next row,
    Hope this will work.
    Nigel.

  • I have Win7Pro64, tried to Un-Install Firefox control panel, no luck, tried running helper.exe from Uninstall folder and it says "Not a Valid Win-32 Application" What gives?? Just want to update to 3.6.4 and that didn't work either so I'm trying to remove

    Running Win7Pro64. Tried to update to 3.6.4 and it failed. It said to download the whole program so I did. Tried to install and says that the "License File" is missing. SO I go to un-install 3.6.3 myslef with Control Panel. All that did was remove Firefox as a listed program in control panel, all of it is still there in Explorer and it runs fine. So I go to use Helper.Exe under the Uninstall folder of Mozilla Firefox and when I click that, it says "Not a Valid Win-32 Application" What's up with that?? All I want to do is remove 3.6.3 so that I can clean install 3.6.4. I tried installing 3.6.4 two different ways with failures both times. I tried to remove 3.6.3 using two different ways, and that also failed both times.
    == This happened ==
    Just once or twice
    == I tried updating to 3.6.4. It failed both with the update and the full download, so tried to un-install 3.6.3 in control panel, then helper.exe with no luck.

    You don't want to update to 3.6.4, trust me. Stay with 3.6.3. If you need to download it again you can find it here:
    http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.6.3/win32/en-US/

  • I want to update to LION,on my Macbook Pro duo core, (october 2006) because Adobe CC needs at least that. I know my computer is old, but works perfect to me and I do not want to stay in Adobe CS6 since I have access to Adobe Cloud CC. Please help.

    I want to update to LION,on my Macbook Pro CORE 2 DUO, (october 2006) because Adobe CC needs at least that. I know my computer is old, but works perfect to me and I do not want to stay in Adobe CS6 since I have access to Adobe Cloud CC. Please help.
    I probably dont want to go to Mountain Lion either because I've heard that it will slow down my computer, So, Lion 10.7 will be the perfect OS X for me.
    I have ne newest release of Snow Leopard installed and works great.
    Thank you ALL for your help.

    you will be ok updating to the new software but there will be some trade off. i have 3 macbooks 2006 that are all running the latest versions.
    some of the trade off are
    1-2 less of battery life
    slow wake ups from sleep
    slower start up time about 30-40 seconds longer then what you have now
    the operating system will use high % of your processer while idealing
    these are not the things you want to hear about a new os compared to the old one but this is how it is even with a new macbook pro. but it's not the end of the world. just make sure you have at least more then 2GB of ram and have a good harddrive and you will be ok.

  • HT1338 i currently have a macbook 2.1 and want to update. what can it support? I can't even download IPhoto! I can't open anything in my ICloud account either! its not on my current browser nor am i able when logging onto my ICloud account.

    i currently have a macbook 2.1xersion 10.6.8 and want to update. what can it support? Everything i try, it won't support! I can't even download IPhoto! I can't open anything in my ICloud account either! its not on my current browser nor am i able when logging onto my ICloud account. Can anyone give me some advice besides buying a newer laptop?

    Lion 10.7.5 is as far as you can go. You must have at least 2 GBs of installed RAM.
    Upgrading from Snow Leopard to Lion or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99.
    If you sign into the App Store and try to purchase Mountain Lion but the App Store says your computer is not compatible then you may still be able to upgrade to Lion per the following information.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. Or you can order directly on the online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • I want to update my IPODtouch, but it will erase all my data. How do I sync my ipod to a new computer so itunes will not erase my data???

    I want to update my IPODtouch, but it will erase all my data. How do I sync my ipod to a new computer so itunes will not erase my data???

    Follow these instructions. When you restore the iPod from backup as the article says your iPod will also be updated.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • My iTunes got deleted off a (no longer working) computer. Is there a way I can transfer all content from my iPhone onto iTunes on a new computer? I want to update my phone, but do not want to lose any music off it when syncing it.

    My iTunes got deleted off a (no longer working) computer. I have lost all music & data that was on this original itunes. Is there a way I can transfer all content from my iPhone (music & photos) onto iTunes on a new computer? I want to update my iphone (3GS), but do not want to lose any music off it when syncing it. Help please!!

    By design, the iphone will sync itunes content with one computer at a time. Any attempt to sync such content with a second computer will result in ALL itunes content being first erased from your phone & then replaced with the content from the second computer. This is a design feature and cannot be overridden. Because you are using a new computer, your phone will see this computer as a "new" computer. The itunes content sync is one way: computer to phone. If you have photos that were synced to your phone or music ripped on your own that were not backed up, you will first have to extract them from your phone using third party software, before you do anything else, as Apple makes no provision to do so:
    http://www.wideanglesoftware.com/touchcopy/index.php
    Once you've done that, do the following in the order specified:
    1. Disable auto sync when an iPod/iPhone is connected under iTunes>Preferences(under the edit menu if using Windows)>Devices in itunes.
    2. Make sure you have one contact & one event in the supported applications(Address Book & iCal or Outlook, Windows Address Book) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect your phone, iTunes running, DO NOT SYNC at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on your phone will be in your itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore your itunes content, which you select from the various tabs, You'll get a popup regarding your contacts & calendars asking to merge or replace, select merge.
    You should be good to go.

  • I am wanting to update iphone to 4.3.3, however I am connected to the internet, yet itunes is telling me it is unable to connect to update server because i am not connected to the internet... please help

    I am wanting to update iphone to 4.3.3 software. however itunes is telling me it is unable to connect to update server as i am not connect to the internet. yet i clearly am connected... Please help

    Looks like I've asked a really old/common question - toonz posted the answer - I've copied it below.  Thanks toonz, everything now ok.
    Correct AnswerRe: Updating to 1.1.3                                                                        02-Feb-2008 23:19                                                    (in response to alibeau)                                       
                            You can fix this by following the steps in this article:
    http://docs.info.apple.com/article.html?artnum=304468                                                                   
                 Liked         (1)     

  • If you're NOT running Aperture 3.6 and want to update to 10.10.3 - read this FIRST.

    If you’re NOT running Aperture 3.6 and want to update to 10.10.3 - read this FIRST.
    In this personal scenario, I used a Mavericks (10.9) test hard drive to see what would happen if I updated to 10.10.3. No photos were harmed in the making of this post. I have full redundant back-ups of everything as should you before attempting ANY OS update. There simply is no excuse not to back up and keep your personal data protected in this day and age.
    Now that’s out of the way… 
    If you’re not running Aperture 3.6 (which I believe is only available if running 10.10.2), updating to 10.10.3 will disable any version of Aperture below that and it CANNOT be updated or found on the App Store, or downloaded from anywhere else. Both the Aperture and iPhotos icons in the dock will have a white circle with a line going through it.
    If you click to open Aperture, the computer will prompt you to update to the latest version because the current version is not compatible with Yosemite. After you acknowledge that, it sends you the the App Store where you will be met with a message that states “Item not available”. It also no longer appears in your purchase history so you can’t update it from there either!
    You’re now forced to use the new Photos app.
    Upon it’s it’s first launch, the Photos app will create a new library for itself and migrate/duplicate all Aperture photos into it. Effectively doubling the disc space used by your pictures...
    This behavior apparently does not happen going from 10.10.2 to 10.10.3. In this latter scenario, Photos still uses the Aperture library and creates a smaller Photos library migrating only the metadata it seems. The actual photos are still referenced from the Aperture library and you can continue to use Aperture (3.6) if you choose. The libraries are NOT unified though. Changes made in one will NOT be reflected in the other.
    In other words, you cannot leap-frog update if you want to continue using Aperture.
    The 10.10.2 Combo Update “may” solve this problem but I have not tested it. Here is a link if you’re feeling brave. https://support.apple.com/kb/DL1786?locale=en_US
    Here are some screen-shots.

    I had been trying to download 7.0.1 with Firefox 3.6. Just would NOT download. Well, I opened another browser, Safari, went to the download page, and the download worked. Who knew?
    All is well now.
    Thanks for the reply.

  • Wanted to update the software now available, but it is asking for a pass code. As far as I remember in didn't put in any pass code , how do I settle this issue . Earlier updates were asking Apple ID but pass code for updating the new soft ware not known.

    Wanted to update the software now available, but it is asking for a pass code. As far as I remember in didn't put in any pass code , how do I settle this issue . Earlier updates were asking Apple ID but pass code for updating the new soft ware not known.

    Hello Kewal,
    Thank you for the details of the issue you are experiencing when trying to perform an update.  I recommend trying to update using iTunes, and as always, it is a good idea to make a backup first. 
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    Update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht4623
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Hello, I wanted to update my ipod touch 1st generation. The current software is 1.1.5. So I purchased iOS 3.1 software update for iPod touch (1st generation) and than I get an error so it did not upgrade.

    Hello, I wanted to update my ipod touch 1st generation. The current software is 1.1.5. So I purchased iOS 3.1 software update for iPod touch (1st generation) and than I get an error so it did not upgrade. Can you help please?

    I too had the same issue. This is how I resolved it http://www.parkhi.net/2011/12/error-8288-ipod-touch-upgrade-ios-31.html

  • TS1814 I have a 4th gen. IPod Touch with IOS4 and i want to update it, but when I hit the Update button its says "contacting the IPod software server" and then after about 5 seconds it says "ITunes could not connect to the IPod software servers". Please h

    I have a 4th gen. Itouch wiht IOS4 and i want to update it, but when i click the update button in ITunes it says "contacting IPod software server" and it looks like it is loading. However, after about 5 seconds it stops and says "ITunes could not connect to the IPod software server". I found the apple webpage that is supposed to help me, but when i went to the LAN settings in the control panel i found that 'Automatically detect settings" was already checked. I do not know what to do, Please help.

    If yo mean the iPod will not connect to your wifi network:
    Does the iPod connect to other networks?
    Do other devices now connect?
    Try:                  
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • I can no longer update apps on my iPhone or iPad1.  It keeps asking me to agree to new terms, which I do, then stops and asks again over and over. Please help. I do not want to update to a new iOS

    I can no longer update apps on my iPhone 4 or my iPad 1 because it keeps asking me over and over to agree to new terms, so I do that and it still does not work.  Just around and around in a circle.  I do not want to update software. I like what I have.

    Pay attention to the numerous posts on this tonight.....try again tomorrow.
    GB

  • Help anyone pls!!! I DO NOT WANT TO UPDATE TO HE NXT LEVEL WEBOS

    My phone keeps popping up for me up update my webos i do not want to.... it accidentally clicked over to update and now i do not know how to turn off this update. I assume there has to be away not to update my phone. I took the battery out so the update would not be completed and this is were i am stuck! i put the battery back and it automatically starts the update I tried the chat support of course they were no help telling me there is no way to stop the update but i believe there is a way! I tried to hit the orange but sym and r to restart and that didnt seem to help. I also tried to click the top button 3 times and that doesnt work either! All suggestions would help
    Post relates to: Pre p100eww (Sprint)

    Read this: Understanding webOS System Updates.
    There are ways to get around it (charge your battery in a separate charger,  if you have one, keep your phone in airplane mode, etc, etc) but eventually the phone will take the update.
    I have to echo what wushu2004 says, why do you not want the update?
    P.S.  If you continue to interrupt the process, you may get into a situation where it will no longer start up, causing you to resort to using the webOS Doctor tool, which will also install the latest update (and doing this works but has a few ramifications)

  • I'd like to know if I can download viber on my 3.1 3GS iphone or not. I don't want to update my Iphone's version,so is it possible to have viber on 3.1? even if all my previous apps get deleted?

    I'd like to know if I can download viber on my 3.1 3GS iphone or not. I don't want to update my Iphone's version,so is it possible to have viber on 3.1? even if all my previous apps get deleted?

    The minimum version required for Viber is 3.1, though it is always important to stay up to date. Why is it that you do not want to download the latest version?

Maybe you are looking for

  • How to get the Full and final settelment date from PC_payresults

    Hi Experts..sairam. We are preparing Functional specification  for a report on Full and final settelement. We need to extract the  full and final settelement date from  payresults. Full and final settelement would be an offcycle run. How can we ident

  • Do I need a headphone amp or is MacBook pro amp good enough

    Is the audio amp in the MacBook Pro 13 Retina (2.6GHz dual-core Intel Core i5Turbo Boost up to 3.1GHz8GB 1600MHz memory128GB PCIe-based flash storage) Powerful enough to get a good result with my Sennheiser HD 600 Headphones

  • GTK apps in Qt Environment -- Does it really make a difference?

    Whenever I read around about running GTK apps in KDE, I get a lot of horror stories about how needing to load GTK libraries in the Qt environment will degrade my system performance and bog down my desktop experience. After spending a lot of time in t

  • Restoration/Updating issues

    Today I formated my hard drive and reinstalled windows. After the installation I plugged in my iPod and re-installed iTunes and the latest iPod updater. When I run the updater, though, it wont let me select the restore or update buttons. the iPod its

  • Dynamically reload xml file

    hi What is the technique for dynamically change a xml source file (without changing the structure) for use with jdbc XML driver ?