Help! PROBLEM UPDATING DATABASE RECORDS

Hi all

Thanks for looking at my post.

I have a form that interacts with a SQL database.

The process begins by a member of the team partially filling out the form and submit it.

xfa.sourceSet.DataConnection.addnew (); on the form-function initiaise

then

xfa.sourceSet.DataConnection.update (); on the submit button.

This process works very well.

The next member of the team then gets the information entering the requirement into two text boxes.

var nIndex = 0;

While (xfa.sourceSet.nodes.item (nIndex) .name! = "DataConnection")

{

nIndex ++;

}

oDB = xfa.sourceSet.nodes.item (nIndex) .racing var (1);

oDB.nodes.item (1).query.setAttribute ("text", "commandType");

oDB.nodes.item (1).query.select.nodes.item (0) .value = "select * from repairform where (A4 = ') ' + TextField11.rawValue + '") & (A5 = ') "" + TextField12.rawValue + "") "."

oDB.open ();

oDB.close ();

Then fill the form with the file for the search term, including partially filled previous team member information.

The user, then the rest of the form and the suibmits poplulates

xfa.sourceSet.DataConnection.update ();

Where is fall down...

On the final conclusion the shape seems to update the first record in the database, not the one that appears.

I'm relatively new to this, so it might make me something stupid.

Help, please.

You shodul be able to use myScriptObject.oDB.update (). It might be time to take a look at the form... can ghoulish you send it to me [email protected]?

Paul

Tags: Adobe LiveCycle

Similar Questions

  • Help: Problem updating BIOS

    I don't know much about computers, but I don't know that it is good to make sure that they are kept up-to-date. So I decided I was going to look into that, I should try to update. I've updated a few things, but then I fell on the BIOS. I found the HP guide on finding what current version is already on my computer (Insyde F.12, 04/09/2012) and then reviewed to ensure whether there was the updated version.

    Here is the list that came under my computer BIOS information.

    It appears as if there was a 5 BIOS updates. My computer meets the system requirements for the most updated version, but every time I tried to download it says "BIOS HP environment does not exist. Please insert a USB flash drive into a USB port on the PC to create the USB STICK recovery HP BIOS that could be used to recover another PC HP. »

    I plugged in my flash drive, did all the steps, and then it appeared.

    I turned off my computer laptop, plugged the flash drive, turned back on and it remained blank for 30 seconds and there was no flashing of the led. Just in case I checked and my BIOS is always the same.

    Please help me with this and understand that I don't know much about computers, so try to keep minimal jargon or explain.

    Thank you.

    Thank you to offer assistance, but I actually understood the reason why it did not work. As I said there have been 5 different updated since my version rather than simply jump on the BIOS updated so I had to do each one individually.

  • Insert and update DB record problem

    I am writing a management tool that allows you to add a record and or update a record in my PB. I bought a text editor or a WYSIWYG editor and I'm trying to adapt it to my code. The form uses a few fields of the form with the editor as the last place to enter the content of the page. Right now all my content in the DB is displayed in the editor, I change the content and submit the form and he lost all the content in the editor, but keeps the content in the fields of the form. This is the code that I use and works for the fields of the form, but not the Editor:

    < cfelseif ParameterExists (Form.btnEdit_OK) >

    < ParameterExists (Form.RecordID) cfif >
    "< cfupdate datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "tableName ="SEEevents"formFields =" #Form.FieldList # ">"
    < cflocation url = "events_RecordView.cfm? RecordID = #Form.RecordID # ">"

    < cfelse >
    "< cfinsert datasource =" "#sitedatasource #" username = "#siteUserID #" password = "" #sitePassword # "tableName ="SEEevents"formFields =" #Form.FieldList # ">"
    "< name cfquery ="GetNewRecord"datasource =" "#sitedatasource #" username = "#siteUserID #" password = "' #sitePassword # ' LignesMax = 1 >"
    SELECT SEEevents.ID AS ID_Field
    OF SEEevents
    ORDER BY SEEevents.ID DESC
    < / cfquery >
    < cflocation url = "events_RecordView.cfm? RecordID = #GetNewRecord.ID_Field # ">"

    < / cfif >

    This is the code to insert a file in the editor that comes with the Editor:
    < cfoutput query = "myContent" >
    < cfquery datasource = "db_example", dbtype = "ODBC" >
    Update sampleTable set sampleContent = ' #evaluate ("form. MyEditorName #myContent.contentID #") #'"
    where contentID = #myContent.contentID #.
    < / cfquery >
    < / cfoutput >

    Can someone help me to make this work? I'm perplexed and in a place that I need this job immediately.
    Help, please

    Thank you

    Phoenix

    Quote:
    Posted by: newsgroup user
    > Error executing database query.
    > [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft
    [> Access Driver] syntax error (missing operator) in query expression "{d
    {> ' 2007-04-13'} ".
    It seems that the error is with your eventDate. in MS Access, dates should be
    entered as # #date # (where date is a date in the format dd/mm/yyyy
    (or d/m/yyyy, according to the regional settings in the database). but there
    should be # 3 on both sides of the date and not '.
    then try changing your SEEevents.eventDate =' #form.eventDate #' to
    SEEevents.eventDate = #form.eventDate #.
    If that always generates an error, you must analyze your form date
    on the ground and make a date in the format MS Access to him first, before
    Add your
    ' mm/dd/yyyy') > and then use it in your query:
    SEEevents.eventDate = ###eDate #.

    This might work, but there are two ways to solve this specific problem. One is to use cfqueryparam and the other is to use createodbcdate. These methods do not work only with access, but with any other databases as well. In addition, you don't have to worry about your date format.

  • Error Windows Update Database that can be 0 x 80070490

    Original title:

    Update of Windows, Java and some problems

    Hello

    My Java and Windows 8 will not get automatically updated.  When I go to all the work this symbol [[[comes in. I have updated Java, nevertheless a message shows to update when I put a cursor over any word of an open page of the internet. I have troubleshooted illustrated message"

    Error Windows Update Database that can be 0 x 80070490

    Miniport Wan (Network Monitor) # 2 has a driver problem

    Windows Update configured to never install drivers '  

    Some keys on the keyboard do not work.  How can I fix these problems?

    Hello Arif,

    Thanks for posting your query on Microsoft Community forum.

    If you receive Windows Update error 80070490, it means that a file (CBS Manifest) that is needed to install updates is corrupt.

    Try it out below mentioned methods and see if it helps.

    Method 1

    Try to follow the steps mentioned in the article below.

    Windows Update, error 0 x 80070490

    Method 2

    Try to run the Troubleshooting Windows Update tool.

    This utility is used to and check if the network card and Windows Update services are running properly.

    Problems with installing updates

    Try other steps mentioned in this article if the issue that you are facing is mentioned in one of the mentioned option it.

    Method 3

    If the problem persists I suggest to reset the Windows Update components and for this, try to run the fixit described in the following article. If you already tried the fixit even before that I ask of you rerun the fixit.

     

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058/en-us#LetMeFixItMyselfAlways

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • Problems updating Adobe Application Manager

    I noticed that many users see problems with a recent update for Adobe Application Manager. I too saw those questions and hoping to find what's happening built a clean build cool Windows 7 x 64 to test.

    • Install Windows 7 x 64 and all updates.
    • CS6 installed and active. (NO cloud creative - perpetual license.)
    • At open Fireworks and ran to HELP. UPDATES.
    • Choose just the AAM update and installed.
    • Clicked on the new AAM shortcut on desktop and was awarded a progress bar and the message "Update"... ».Screen Shot 2013-06-19 at 11.36.49 AM.png
    • The following error message appears: "Adobe Application Manager failed to install.Screen Shot 2013-06-19 at 11.03.07 AM.png
    • Re-run the installer generates the same error.
    • MAO traveled with Fireworks HELP | UPDATES.
    • Update is fine. Updated the other applications of CS6.
    • Restarted.
    • Tried again the AAM shortcut on desktop. Update the message came again and so did error message.
    • Tried running AAM directly from the browser by using "Run as Admin" - same error message. (This seems to actually work on my production system - the update is complete on this system, although it installed the client of creative cloud too that I then had to uninstall).

    Keep in mind, this is a version of Windows 7 x 64 completely clean. There is no software antivirus or something else that could disrupt the MAO update procedure. Something with the recent update seems to cause problems. A fellow Robains forum user posted in another discussion that his analysis of the installation routine seems to indicate a problem of privilidge of HTML 5 in the installation/update routine. I can't give a second with his analysis, but it can give Adobe something to look into.

    If other users see this unusual behavior (should have occurred recently, in the last two days about)-, feel free to post it here to describe your environment. Is currently seen on both Mac and PC platforms.

    Hi Revv,

    Could you please remove OOBE records of these places.

    C:\Users\(your username) \AppData\Local\Adobe

    C:\Program Files (x 86) \Common Files\Adobe

    Once please download MAO from this location and let me know if this solves your problem or not.

    http://www.Adobe.com/support/downloads/thankyou.jsp?ftpID=4773&FILEID=4437

    Kind regards

    Abhijit

  • Update/Insert Record Wizard syntax error

    Try using the Wizard update of records, I get the following error when you click the update button:

    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near 'Condition 'Very good' =, system = "related" ', Desc "=" Art and decoration July thru' at line 1
    I get to the page for editing a page that displays all dbase, passing the index parameter to the update page when I click on a bound column index number. The update page appears full on the appropriate folder. It won't just accept the update button is clicked without generating the error, even if I make any changes at all to the record.

    An almost identical error pops up just trying to open the page to insert a form created with the wizard insert a Record for this same table/dbase.

    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near 'State system 'Desc', price, weight, ThumbPic, library LargePic' at line 1

    The mysql database update etc directly through php admin, but not through these pages of the wizard due to the error message. I have not modified any coding, just followed the instructions. I've done several of these pages Update and Insert before for other dbases and tables, so I have an idea of what I'm doing, but never confronted to this. This can be a problem with the syntax of one of my titles of rank or something to do with the structure of the dbase? Any ideas would be greatly appreciated? Thank you

    I got it. Condition, one of my domain names and the first field mentioned in the error message is a reserved word in MySQL 5... Shortcut to the top name, cleaned the server behaviors for the new name of field and Update and Insert work very well.

  • Update a record questioned using the parameter

    Hi all

    Have someone to help me to update an interviewed record of forms. It's like that when I use ID to search for the details, I want to update the record you are searching.

    Arif

    Hi Arif,
    Here you're doing something complicated with you.

    1 UCID_PARAM and USERCREATION are 2 revenge in the same form
    2 UCID_PARAM contain column UCID which is the primary key of the table usercreation. I used this block to pass

    The blockk UCID_PARAM here is the database block and why you must pass the value as a parameter because as you say it is primary key and foreign key in the block. Then why do you use search mechanism Assembly. I mean just create relationship between UCID_PARAM and USERCREATION block or if he joins then just use the method ENTER_QUERY and EXECUTE_QUERY. I understand because if you enter a value in the UCID_PARAM block and goes to the block of detail and do EXECUTE_QUERY by selecting a WHERE CLAUSE.

    So, what's going to happen here. System takes into account that you are inserting record in UCID_PARAM. So, there is a field that is not null, then the error is coming.

    Just use the default behavior of your forms. Or if you really want to use this method. Next, create a block of data non-base to pass the parameter. Do not use UCID_PARAM as the database block.

    And one more thing, I noticed in your this clause

    set_block_property ('USERCREATION', onetime_where, 'UCID =' |) ': UCID_PARAM. UCID');

    It should be

    set_block_property('USERCREATION',onetime_where,'UCID='||:FORM_FIELD_NAME);

    I hope it is clear now.

    -Clément

  • blue screen problem update Radeon hd 6770 m

    so I went to amd and makes automatic detection, so I can get the latest driver for the video card in HD 6770 m... once I downloaded the new driver updated and installed, I can not open my catalyst and says that I have no hardware support and I also get the blue screen crash my computer... to solve this problem, so I had to do a system restore and restore all the drivers and im currently stuck with the version of the 8.882.2.300 driver that was published in the year 2011...

    I have a HP Pavilion dv7-6195us laptop computer
    and I hurt after my gpuz so you can help me solve my question... Thank you


    Please help me

    I have a HP Dv7 6197 ca with the same card as you, then here is how you fix this problem: update your BIOS to the latest version, and then in the BIOS screen (press ESC, then select the Bios Setup) and change the setting for the Graphics Mode fixed to Dynamics. This should solve your problem. If you can't find this option in the BIOS update, then try the UBR tool in the installer of UNIFIL. I suggest try F840 and F940 values.

    If the resolution is all wonky after you go into the BIOS, you will need to re - install the drivers.

  • Get help continuous update error code 0CX80001FE

    Hello

    I hope someone can help me. A week ago, I had to uninstall Bitdefender Security and Microsoft Security Essentials in order to download, and the new version of Bitdefender Security 2013. Once I uninstalled them both, I re-installed Microsoft Security Essentials and now had the new version of Bitdefender. Before that, I have not had any problems or questions to everyone, including Microsoft Update. Since then, I can't update Microsoft updates more. I get error code 0CX80001FE. I've been to the Microsoft Support page for this http://support.microsoft.com/kb/958048 error and did everything he said, but it does not help me update Windows. I also run Microsoft Fix It that opens when I go to this support page. Microsoft Fix It found 2 issues and said "Microsoft Components needs to be repaired". After running Fix It to repair, he tells me that they have been corrected. I restart my computer and you try to run Windows Update again and get the same error code.

    Help, please! I'd be happy.

    PS. I am still using Windows XP.

    Thank you

    Chrystal

    Chrystal,

    Try the steps mentioned in the article

    http://support.Microsoft.com/kb/2509997>

    'Do not use more than one anti-virus, 2 or more are a sure way to hit trouble'.

    Do you not understand that you have 2 two installed antivirus applications and loading at startup?

    cannot write to the log file = 0xC80001FE

    1. stop the automatic updates service:

    Start > run > services.msc (enter) > [OK]

    Double-click Automatic Updates > click Stop

    (Stopping the service will take a moment)

    2 remove the contents of the download folder:

    Start > run > %windir%\SoftwareDistribution (enter) > [OK]

    Open the download folder and delete its contents

    Close the window.

    3. start the automatic updates service:

    Start > run > services.msc (enter) > [OK]

    Double-click Automatic Updates > click Start

    (Starting the service will take a moment)

    4 test cycle. If no joy, repeat the three steps above, deleting

    %windir%\SoftwareDistribution<=this folder="">

    C:\Windows\SoftwareDistribution) manually in step 2 this time.

    5. If still no joy...

    I would recommend that you cut to the chase and...

    Launch a collateral request for assistance free Windows Update:

    >

    UTC/GMT is 18:04 Wednesday, December 12, 2012

  • problem updating SP3 after a reboot at the end of the update process, IE8 will not start

    I have no problem updated from sp2 to sp3. However after a reboot at the end of the update process, IE8 will not hold. When I click on ie, computer absolutely crashes. Help, please

    Restart your computer and if restart is ok are not trying to run IE8. Go to add and remove and remove IE8 and your computer will be re-established on IE7.  If all is ok so far restart your computer once more and if everything is ok at this point you can download IE8 again.

  • I need help to update my computer (error code: 80070424)

    original title: I need help to update my computer

    I could not update my computer for more than a year. I searched for the cause of this and have been unsuccessful. Whenever I click search for updates, it gives me errors, and then I click on get help with errors and tried troubleshooting but have not been able to solve my problem. Lately, he has been interfering with the update or install new programs. Now I can't update my Itunes or Ipod. I can't upgrade to Windows 7. I can ' t use microsft word because everytime I try to install or update these things, it won't let me. I've been putting off not to worry so much about the updates, but they have reached a limit, when my computer became difficult to use. The error code is 80070424.

    Restore the system to factory settings.  Install applications from their media keys/serial numbers and product, that you put aside.  Restore your data from backup.

  • Problems of sound recording in Windows 7

    My wife has just purchased Dragon speech-to-text software and try to make it work. When she speaks into the microphone, the software shows that it is to hear his voice (levels bounce up and down with the cadence of his voice), but Dragon indicates that he has trouble hearing.

    She then went to Windows Sound recorder and it is very well made. But then in Control Panel, when you go through devices to configure the microphone and try to run this process, he also complains that he cannot hear. Is attached a screenshot of the dialog that appears in this process.

    The fact that it works in sound recorder makes me think that the device driver levels levels micro, etc. must be correct and functional. So it's strange to me that the thing in Control Panel does not work as it is also part of Windows.

    Any ideas what might be happening here? We have removed and re - detect the hardware and reinstalled the device drivers and none of this has made a difference.

    His is an all-in-one machine Acer Aspire running Windows 7 Ultimate.

    Thank you... Rogers

    Hello Roger,.

    According to the description, I understand that the microphone on your device becomes an audio input, however, there are problems during the recording of the voice. I will certainly help you in this matter. To better understand the issue, I would like to ask you a few questions.

    1. You use a headset to record the sound?

    2. You have installed all the latest drivers for the computer?

    3. Have you installed an antivirus software?

    4. What Dragon speech-to-text version are you using?

    I suggest you test the compatibility of the software with windows 7 to do this, click on the link below:

    http://www.Microsoft.com/en-us/Windows/compatibility/CompatCenter/home

    This problem may occur when there is a conflict with the driver or problems with registration of the components. I suggest you try the following methods to diagnose and resolve the problem.

    Method 1: Recording Audio Troubleshooter

    It checks the common issues, for example by ensuring that both a map of his work and a recording device are installed on your computer. To do this, click on the link below:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-recording-audio-Troubleshooter

    Method 2:

    I also suggest you to install the drivers in compatibility mode. By this, you can install a program more former who maybe isn't compatible with your version of windows. For more information on this subject, click on the link below.

    http://Windows.Microsoft.com/en-us/Windows/make-older-programs-run#1TC=Windows-7

     

    Hope this information was useful.

  • Update the records in the table

    I have an INCOME_LOT table. Now, I need to update records with the current max (lot_id) + rownum where lot_id = 0.
    Note: There are multiple records with lot_id = 0.

    CREATE TABLE INCOME_LOT
    (
    LOT_ID NUMBER OF NON-NULL,
    NUMBER OF DETAIL_ID
    DATE OF EFFECTIVE_DATE,
    DATE OF UPDATE_DATE
    )
    It is only a sample data of 4 records, while in fact, I have millions of records to be updated.

    Insert into INCOME_LOT
    (LOT_ID, DETAIL_ID, EFFECTIVE_DATE, UPDATE_DATE)
    Values
    (0, 5773490, TO_DATE (MAY 5, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (MAY 6, 2014 00:22:40 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into INCOME_LOT
    (LOT_ID, DETAIL_ID, EFFECTIVE_DATE, UPDATE_DATE)
    Values
    (0, 5773491, TO_DATE (MAY 5, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (MAY 6, 2014 00:22:40 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into INCOME_LOT
    (LOT_ID, DETAIL_ID, EFFECTIVE_DATE, UPDATE_DATE)
    Values
    (0, 5773492, TO_DATE (MAY 5, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (MAY 6, 2014 00:22:40 ',' DD/MM/YYYY HH24:MI:SS'));))
    Insert into INCOME_LOT
    (LOT_ID, DETAIL_ID, EFFECTIVE_DATE, UPDATE_DATE)
    Values
    (0, 5773493, TO_DATE (MAY 5, 2014 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (MAY 6, 2014 00:22:41 ',' DD/MM/YYYY HH24:MI:SS'));))
    COMMIT;

    Can someone help me to update all records with a single SQL query or maybe a PL/SQL block? I could design a cursor to update, but it would be tedious to use.

    Do you want this:

    UPDATE INCOME_LOT

    Set lot_id = 262696 + ROWNUM

    WHERE lot_id = 0;

  • There was a problem updating photoshop cc

    There was a problem updating photoshop cc, U44M1P7. How to solve?

    Hello

    Please see: -.

    "Installation failed" error U44M1P7 with Adobe Creative Cloud or updates of Adobe Creative Suite 6

    U44M1P7 error code

    Error U44M1P7: Cannot apply CS6 Adobe Extension Manager Update | Mac OS

    Hope this helps!

  • Update multiple records at once

    First, thank you very much the people who have helped me out several times now. I put things together and came across another issue of 'beauty' begin as follows. In the previous topics, I had a way to get to an array of automated classification based on the inputs of a fixtures table and some simple calculations. Now, which has been accomplished which resulted in me having to update all the teams by simply clicking a button.

    As you can see in the code below, using a table with every row a form, at the end of the line, there is a button called 'OK' I have to push to update the record according to. A repeat region for all teams in this query shows the ranking of 'new', but is not yet inserted in the League table. Is it possible to have this repeat region without having to push 18 or 20 times a button update? At the end of the table, one (1) button update all records? The primary key is composed like this ' 0000 - u00a "(4 numéros un tiret puis un «u» 1 ou 2 numéros et 1 ou 2 lettres à nouveau)."

    <?php require_once('Connections/connection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }

    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    }

    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "klassement")) {
      $updateSQL = sprintf("UPDATE klassement SET wedstrijden=%s, overwinning=%s, verlies=%s, gelijkspel=%s, goalsvoor=%s, goalstegen=%s, goalverschil=%s, punten=%s WHERE ploegid=%s",
                           GetSQLValueString($_POST['wedstrijden'], "int"),
                           GetSQLValueString($_POST['overwinning'], "int"),
                           GetSQLValueString($_POST['verlies'], "int"),
                           GetSQLValueString($_POST['gelijkspel'], "int"),
                           GetSQLValueString($_POST['goalsvoor'], "int"),
                           GetSQLValueString($_POST['goalstegen'], "int"),
                           GetSQLValueString($_POST['goalverschil'], "int"),
                           GetSQLValueString($_POST['punten'], "int"),
                           GetSQLValueString($_POST['ploegid'], "text"));

      mysql_select_db($database_koscw, $koscw);
      $Result1 = mysql_query($updateSQL, $koscw) or die(mysql_error());

      $updateGoTo = "klassement-ploegen.php?reeksid=" . $row_klassement['reeksid'] . "";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $updateGoTo));
    }

    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      }

      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }

    $reeks_klassement = "-1";
    if (isset($_GET['reeksid'])) {
      $reeks_klassement = $_GET['reeksid'];
    }
    mysql_select_db($database_koscw, $koscw);
    $query_klassement = sprintf("select * from klassement where reeksid = %s order by status asc, punten desc, overwinning desc, goalverschil desc", GetSQLValueString($reeks_klassement, "text"));
    $klassement = mysql_query($query_klassement, $koscw) or die(mysql_error());
    $row_klassement = mysql_fetch_assoc($klassement);
    $totalRows_klassement = mysql_num_rows($klassement);

    $id_reeks = "-1";
    if (isset($_GET['reeksid'])) {
      $id_reeks = $_GET['reeksid'];
    }
    mysql_select_db($database_koscw, $koscw);
    $query_reeks = sprintf("select reeksnaam from reeksen where reeksid = %s", GetSQLValueString($id_reeks, "text"));
    $reeks = mysql_query($query_reeks, $koscw) or die(mysql_error());
    $row_reeks = mysql_fetch_assoc($reeks);
    $totalRows_reeks = mysql_num_rows($reeks);

    mysql_select_db($database_koscw, $koscw);
    $query_seizoen = "select * from seizoen";
    $seizoen = mysql_query($query_seizoen, $koscw) or die(mysql_error());
    $row_seizoen = mysql_fetch_assoc($seizoen);
    $totalRows_seizoen = mysql_num_rows($seizoen);

    $huidig=$row_seizoen['huidigseizoen'];
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="stylesheet" type="text/css" media="all" href="../_styles/koscw-admin.css" />
    <title>Klassement <?php echo $row_reeks['reeksnaam']; ?> | Beheerpaneel | 1349</title>
    </head>
    <body>
    <div id="container">
    <h1 class="overzichth1">Klassement <?php echo $row_reeks['reeksnaam']; ?></h1>
    <?php if ($totalRows_klassement > 0) { // Show if recordset not empty ?>
    <table cellpadding="5" cellspacing="0" border="0" id="klassement">
    <tr>
      <td class="klassementsmall bgccc bold"></td>
           <td class="klassementteam bgccc bold">Ploegnaam</td>
           <td class="klassementsmall bgccc bold">+</td>
           <td class="klassementsmall bgccc bold">-</td>
           <td class="klassementsmall bgccc bold">=</td>
          <td class="klassementsmall bgccc bold">#</td>
           <td class="klassementsmall bgccc bold"><img src="../_img/goalsmade.png" alt="Goals +" /></td>
           <td class="klassementsmall bgccc bold"><img src="../_img/goalsagainst.png" alt="Goals -" /></td>
           <td class="klassementsmall bgccc bold"><img src="../_img/goalsdifference.png" alt="Goals &asymp;" /></td>
           <td class="klassementsmall bgccc bold">PTN</td>
          <td class="klassementsmall bgccc"> </td>
    </tr>
    <?php
    $i=0;
    do {
    $i++;
    if($i % 2) { //this means if there is a remainder
         echo "<tr class=\"calendareven\">";
    } else { //if there isn't a remainder we will do the else
         echo "<tr class=\"calendarodd\">";
    }
    ?>
    <td>
    <?php
    $rank += 1;
    echo $rank;
    ?>      </td>
           <td class="klassementteam">
              <?php
            $thuisploeg=$row_klassement ['ploegid'];
              $sql_select_thuisploeg="select ploegnaam from ploegen where ploegid = ('$thuisploeg')";
              $resultset_thuisploeg=mysql_query($sql_select_thuisploeg);
              while ($data_thuisploeg=mysql_fetch_array($resultset_thuisploeg))
              {echo $data_thuisploeg['ploegnaam'] . " ";}?></td>
           <form action="<?php echo $editFormAction; ?>" method="POST" name="klassement">
          <input type="hidden" name="ploegid" value="<?php echo $row_klassement ['ploegid']; ?>" />
           <td>
          <?php
           $tw=$row_klassement['ploegid'];
           $sql_select_tw="SELECT COUNT( * ) AS twin FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$tw' AND thuisploeggoals > bezoekersgoals";
           $resultset_tw=mysql_query($sql_select_tw);
           $data_tw=mysql_fetch_array($resultset_tw);
           $data_tw['twin'];
          
           $uitwin=$row_klassement['ploegid'];
           $sql_select_uitwin="SELECT COUNT( * ) AS awin FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$uitwin' AND thuisploeggoals < bezoekersgoals";
           $resultset_uitwin=mysql_query($sql_select_uitwin);
           $data_uitwin=mysql_fetch_array($resultset_uitwin);
           $data_uitwin['awin'];
          
           $win=($data_tw['twin'])+($data_uitwin['awin']);
           ?>
          <input type="text" name="overwinning" value="<?php echo $win; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
          <?php
           $tv=$row_klassement['ploegid'];
           $sql_select_tv="SELECT COUNT( * ) AS tver FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$tv' AND thuisploeggoals < bezoekersgoals";
           $resultset_tv=mysql_query($sql_select_tv);
           $data_tv=mysql_fetch_array($resultset_tv);
           $data_tv['tver'];
          
           $uitverlies=$row_klassement['ploegid'];
           $sql_select_uitverlies="SELECT COUNT( * ) AS aver FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$uitverlies' AND thuisploeggoals > bezoekersgoals";
           $resultset_uitverlies=mysql_query($sql_select_uitverlies);
           $data_uitverlies=mysql_fetch_array($resultset_uitverlies);
           $data_uitverlies['aver'];
          
           $ver=($data_tv['tver'])+($data_uitverlies['aver']);
           ?>
          <input type="text" name="verlies" value="<?php echo $ver; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
          <?php
           $thuisdraw=$row_klassement['ploegid'];
           $sql_select_thuisdraw="SELECT COUNT( * ) AS tdraw FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$thuisdraw' AND thuisploeggoals = bezoekersgoals";
           $resultset_thuisdraw=mysql_query($sql_select_thuisdraw);
           $data_thuisdraw=mysql_fetch_array($resultset_thuisdraw);
           $data_thuisdraw['tdraw'];
          
           $awaydraw=$row_klassement['ploegid'];
           $sql_select_awaydraw="SELECT COUNT( * ) AS adraw FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$awaydraw' AND thuisploeggoals = bezoekersgoals";
           $resultset_awaydraw=mysql_query($sql_select_awaydraw);
           $data_awaydraw=mysql_fetch_array($resultset_awaydraw);
           $data_awaydraw['adraw'];
          
           $draw=($data_thuisdraw['tdraw'])+($data_awaydraw['adraw']);
           ?>
          <input type="text" name="gelijkspel" value="<?php echo $draw ?>" class="inputscore" readonly="readonly" />
          </td>
          <td>
          <?php $wedstrijden=$win+$ver+$draw; ?>
          <input type="text" name="wedstrijden" value="<?php echo $wedstrijden; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php
          $tgv=$row_klassement ['ploegid'];
           $sql_select_tgv="SELECT SUM( thuisploeggoals ) AS tgv1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$tgv'";
           $resultset_tgv=mysql_query($sql_select_tgv);
           $data_tgv=mysql_fetch_array($resultset_tgv);
           $data_tgv['tgv1'];

          $ugv=$row_klassement ['ploegid'];
           $sql_select_ugv="SELECT SUM( bezoekersgoals ) AS ugv1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$ugv'";
           $resultset_ugv=mysql_query($sql_select_ugv);
           $data_ugv=mysql_fetch_array($resultset_ugv);
           $data_ugv['ugv1'];

           $gv=($data_tgv['tgv1'])+($data_ugv['ugv1']);
           ?>
          <input type="text" name="goalsvoor" value="<?php echo $gv; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php
          $tgt=$row_klassement ['ploegid'];
           $sql_select_tgt="SELECT SUM( thuisploeggoals ) AS tgt1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND bezoekersid = '$tgv'";
           $resultset_tgt=mysql_query($sql_select_tgt);
           $data_tgt=mysql_fetch_array($resultset_tgt);
           $data_tgt['tgt1'];

          $ugt=$row_klassement ['ploegid'];
           $sql_select_ugt="SELECT SUM( bezoekersgoals ) AS ugt1 FROM kalender WHERE seizoen = '$huidig' AND speeldag !=0 AND thuisploegid = '$ugv'";
           $resultset_ugt=mysql_query($sql_select_ugt);
           $data_ugt=mysql_fetch_array($resultset_ugt);
           $data_ugt['ugt1'];

           $gt=($data_tgt['tgt1'])+($data_ugt['ugt1']);
           ?>     
          <input type="text" name="goalstegen" value="<?php echo $gt; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php $goals=$gv-$gt; ?>
          <input type="text" name="goalverschil" value="<?php echo $goals; ?>" class="inputscore" readonly="readonly" />
          </td>
           <td>
           <?php $punten=($win*3)+($draw*1); ?>
          <input type="text" name="punten" value="<?php echo $punten; ?>" class="inputscore" readonly="readonly" />
          </td>
          <td>
          <input type="submit" value="OK" />
          </td>
          <input type="hidden" name="MM_update" value="klassement" />
           </form>
      </tr>
      <?php } while ($row_klassement = mysql_fetch_assoc($klassement)); ?>
    </table>
    <?php } // Show if recordset not empty ?>

    </div>
    </body>
    </html>
    <?php
    mysql_free_result($klassement);

    mysql_free_result($reeks);

    mysql_free_result($seizoen);
    ?>

    Each record is separated, as well as a record can be updated at once, unless you want that all records have the same value.

    To update multiple records in a single operation, you must send the form tabular data. You do this by adding an empty pair of brackets at the end of the name attribute of each entry on the form like this:

     
    

    This translates by $_POST ['ploegid'] which contains a table of all IDS: $_POST ['ploegid'] [0], $_POST ['ploegid'] [1], $_POST ['ploegid'] [2] and so on. All the attributes of the repeat region name need to have added hooks. The following hidden field should be outside of the repeat region and may not have the brackets:

    
    

    You can then use a loop for updating the values like this:

    for ($j = 0, $len = count($_POST['ploegid']); $j < $len; $j++) {  $updateSQL = sprintf("UPDATE klassement SET wedstrijden=%s, overwinning=%s,   verlies=%s, gelijkspel=%s, goalsvoor=%s, goalstegen=%s, goalverschil=%s,   punten=%s WHERE ploegid=%s",                       GetSQLValueString($_POST['wedstrijden'][$j], "int"),                       GetSQLValueString($_POST['overwinning'][$j], "int"),                       GetSQLValueString($_POST['verlies'][$j], "int"),                       GetSQLValueString($_POST['gelijkspel'][$j], "int"),                       GetSQLValueString($_POST['goalsvoor'][$j], "int"),                       GetSQLValueString($_POST['goalstegen'][$j], "int"),                       GetSQLValueString($_POST['goalverschil'][$j], "int"),                       GetSQLValueString($_POST['punten'][$j], "int"),                       GetSQLValueString($_POST['ploegid'][$j], "text"));
    
      mysql_select_db($database_koscw, $koscw);  $Result1 = mysql_query($updateSQL, $koscw) or die(mysql_error());}
    

Maybe you are looking for

  • Adding data to access DB with connectivity toolkit?

    I'm trying a new way to add data access instead of AciveX due to not knowing the commands necessary to interact with him.  Instead, I try to use the database connectivity toolkit and learn new techniques.  It is also an introduction to the variants t

  • Why does my wireless card to go out

    Why my wireless adapter is off on my windows desktop computer? and how do I turn it back on?   I went for several months, so I have not used my computer. [divide discussions without Virus Malware report & - moved to Windows/Web & Networking]

  • Lost an attached document changed to email Yahoo. Where at - it go?

    I opened a document (with Word 7) attached to an e-mail that I received in my Yahoo email account.  I've made changes in the document, click Yes, when asked if I wanted to save my changes, close the document, closed the email and Yahoo.  Now I can't

  • My eye motion webcam does not work

    My doesn´t webcam works in Skype, messenger, thelolcam.com, etcetc cameroid.com it does not work! I think I uninstalld the drivers, my operating system is Vista my VGN-NS120FH model, it's a SONY VAIO please help me! I can´t find the drivers and I nee

  • How can I determine the order of firstname and lastname?

    I get the name of the contact with the following code. BlackBerryContact contact = ... String[] name = contact.getStringArray(Contact.NAME, 0); String firstName = name[Contact.NAME_GIVEN]; String lastName = name[Contact.NAME_FAMILY]; But I can't dete