Update records

What the devil is an IMAP server and why isn't it works fine for my e-mail address.  He tells me that I need to update my account or my IMAP server does not recognize an address, and I don't know what that means files.  I use Facebook and MSN mail.  I try to go through my mail and click on Delete on those that I don't want, and they keep coming back.

I get messages that say I need to use a start TLS command and I don't know what that means.  Windows live mail also sends a message "unable to select"Inbox"on the IMAP server."  Try to update the folder list... How DO I do that?

Hello

 
Please contact Microsoft Community.
 
 
Please confirm the e-mail client you use. ?
 
 
It is possible that you are facing this problem because your account is not configured properly or the account settings are corrupted. I suggest you to reconfigure your account in Windows Live Mail and check if the problem resolves. Please see this link:
 
 
How do I set up/re-configure an account non - Windows Live Hotmail in Windows Live Mail
 
 
If the email client is Gmail, see the article:
 
Start with IMAP and POP3 - Gmail Help Center
 
 
Hope this information is useful. Just reply with the results and if you need help or have any other questions about Windows, we're here to help.
 
Kind regards
Anusha

Tags: Windows

Similar Questions

  • Having problems updating records

    Hello.

    I'm having problems to update some documents of my table, like this, I have at this table TESTQ the CD_FABR field is a code for this table TFAB, im linking this two tables with the B.NM_FABR field = A.NM_FABR, but when I try to this statement, more then returns a record for each recording that ive tried to put up-to-date :

    TESTQ UPDATE SET A.CD_FABR = (SELECT DISTINCT (B.CD_FABR) FROM TFAB B WHERE B.NM_FABR = A.NM_FABR);

    COMMIT;

    Returns this error ORA-01427

    Once I created a procedute update records like that with a slider, but I lost this procedure and I do not remember how to create the loop for it anyome, any idea?

    This will tell you which set of values is the cause of the problem.

    Select nm_fabr, cd_fabr, count (1)

    Of

    (select distinct nm_fabr, cd_fabr from tfab)

    Nm_fabr group, cd_fabr

    view count (1) > 1;

  • Behavior update record server breath error (its share of CS5.5 standard installation!)

    We do not expect that the code provided by a GREAT SOCIETY and CHIEF of TECHNOLOGY for WEB DEVELOPMENT to blow a mistake on one of the server behaviors, it provides as part of its standard installation. But then again, it is reality.  The UpdateRecord.js, located in your Windows 7 installation to... ProgramFiles (x 86(/Adobe Dreamweaver CS5.5/configuration/ServerBehaviors/Php_MySQL/UpdateRecord.js causes an error when it is selected from the SERVER BEHAVIORS menu.)  In this case, BEFORE you, I don't enter in the fields.  Error States: "while executing onLoad in UpdateRecord.htm, the following JavaScript error occurred: at line 687 of the file «...»» UpdateRecord.js': name has no property.  I looked at the code and it is beyond my comprehension.  Something about the NAME of a value in a list of nodes... I don't have the chops to go rewrite the code of Adobe.  If I did, I would make a lot of money.  Anyone know what to do about it? On my system: Windows 7, 64 bit, CS5.5 (on a lease is aware) using PHP and MySQL on a remote dedicated server running Apache under Linux.   : <) McFrisco

    OK, I've earned this spanking.  I was just frustrated.  Sorry for the rant.

    I managed to find a workaround on this.  There's really something wacky happening with Dreamweaver and the updated Disk Manager.  Here's what I did:

    How to make a DREAMWEAVER UPDATE RECORD writing.

    Dreamweaver Server for update record behavior doesn't work properly sometimes.  The symptom of this is that when you try to fill the popup form provided by the record of behaviors/setting menu item to update server, it you cannot choose the fields in the form to update the database if they are posted there by a previous page.  It only allows to choose if they are linked to the database.  It does no good, because you're updating a record with information from the database, you want to update, NO new information.  Kind of weird... But here's the way around.  Its a bit annoying but it works.

    1. on a clean, updated php page up a form with input fields corresponding fields of database, you want to update.  This page should be used as the page of RESULT of a form on a page where the update folder does not work because of conflicts, plugins or other unknown reasons.

    2. connect to the table of database that you want to update and put in place a recordset on the page.

    3 bind all the form fields to the correct database fields.

    4 make a behavior update record based on this form.  This in fact will not do anything but update registration with the stuff that's already in the file, as shown above.

    5 remove the php code that sets up the Recordset.  But, LET alone recording update code!  It is correct.

    6 change the bindings of all fields in the FORM to the variables $_POST [] is passed to the form on the previous page. (Make sure that the form of the previous page uses the POST, not the GET method).

    Now, when you submit the form it will go in the form values, which have been adopted since the form on the previous page.

  • Update record

    I've created a form that allows the user to enter information in a database where each user has a record. Now, I want to create a page that allows the user to update their records. What I've done so far is created a 'my profile page' that the user is able to access once that they identify you that contains all of the information they provided on the registration page. Also on this page, I put a link change so that they stop the "edit my profile page. from there, I created a query of update folder, but when I tested it to see if it worked don't update the database. I do not know where the data is going at this point. Any help would be appreciated.

    Here is the code for my profile page:

    <? php require_once('Connections/rescue.php');? >

    <? PHP

    initialize the session

    If (! isset {})

    session_start();

    }

    * Log out the current user. **

    $logoutAction = $_SERVER ['PHP_SELF']. » ? doLogout = true;

    If ((isset & & ($_SERVER ['QUERY_STRING']! = "")) {})

    $logoutAction. = '& '. htmlentities($_SERVER['QUERY_STRING']);

    }

    {If ((isset($_GET['doLogout'])) & & ($ {_GET ['doLogout'] == "true"))}

    //to completely disconnect a visitor you must delete the session varialbles

    $_SESSION ['MM_Username'] = NULL;

    $_SESSION ['MM_UserGroup'] = NULL;

    $_SESSION ['PrevUrl'] = NULL;

    unset($_SESSION['MM_Username']);

    unset($_SESSION['MM_UserGroup']);

    unset($_SESSION['PrevUrl']);

    $logoutGoTo = "logout.php";

    if {($logoutGoTo)

    header ("Location: $logoutGoTo");

    "output";

      }

    }

    ? >

    <? PHP

    If (! isset {})

    session_start();

    }

    $MM_authorizedUsers = "";

    $MM_donotCheckaccess = "true";

    Restrict access to Page: grant or deny access to this page

    Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}

    / / For safety, first assuming that the visitor is NOT allowed.

    $isValid = false;

    / / When a visitor is connected to this site, the Session value variable MM_Username equal to their username.

    / / So, we know that a user is NOT logged if this Session variable is empty.

    if (! empty ($UserName)) {}

    / / In addition to be connected, you can restrict access to only certain users based on a created ID when they connect.

    / / Parse strings in the tables.

    $arrUsers = explode (",", $strUsers);

    $arrGroups = explode (",", $strGroups);

    if (in_array ($UserName, $arrUsers)) {}

    $isValid = true;

        }

    / / Or you can restrict access to only certain users based on their user name.

    if (in_array ($UserGroup, $arrGroups)) {}

    $isValid = true;

        }

    if (($strUsers == "") & & true) {}

    $isValid = true;

        }

      }

    return $isValid;

    }

    $MM_restrictGoTo = 'login.php ';

    If (!) ((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], $_SESSION ['MM_UserGroup']))) { }

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    if (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    if (isset($_SERVER['QUERY_STRING']) & & strlen($_SERVER['QUERY_STRING']) > 0)

    $MM_referrer. = « ? ». $_SERVER ['QUERY_STRING'];

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    header ("Location:".) $MM_restrictGoTo);

    "output";

    }

    ? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    if (via 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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

      }

    return $theValue;

    }

    }

    $colname_rsmyprofile = "-1";

    If (isset($_SESSION['register_login'])) {}

    $colname_rsmyprofile = $_SESSION ["register_login"];

    }

    @mysql_select_db ($database_rescue, $rescue);

    $query_rsmyprofile = sprintf ("" SELECT * from user_registration WHERE register_login = %s ", GetSQLValueString ($colname_rsmyprofile,"text")");

    $rsmyprofile = mysql_query ($query_rsmyprofile, $rescue) or die (mysql_error ());

    $row_rsmyprofile = mysql_fetch_assoc ($rsmyprofile);

    $totalRows_rsmyprofile = mysql_num_rows ($rsmyprofile); $colname_rsmyprofile = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_rsmyprofile = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_rescue, $rescue);

    $query_rsmyprofile = sprintf ("" SELECT * from user_registration WHERE register_login = %s ", GetSQLValueString ($colname_rsmyprofile,"text")");

    $rsmyprofile = mysql_query ($query_rsmyprofile, $rescue) or die (mysql_error ());

    $row_rsmyprofile = mysql_fetch_assoc ($rsmyprofile);

    $totalRows_rsmyprofile = mysql_num_rows ($rsmyprofile);

    ? >

    < table width = "591" cellpadding = "2" cellspacing = "2" >

    < class tr = "mainlabels" >

    < td colspan = "4" bgcolor = "#FFFFFF" style = "color: #FFF;" do-family: "Arial Black", Gadget, without serif. do-size: 16px; make-weight: bold; ' > < div align = "left" > < / div > < table >

    < /tr >

    < class tr = "mainlabels" >

    < td colspan = "4" bgcolor = "#FF0000" style = "color: #FFF;" do-family: "Arial Black", Gadget, without serif. do-size: 16px; make-weight: bold; ' > < div align = "left" > news < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" style = "do-size: 12px;" do-family: Arial, Helvetica, without serif. Color: #000; make-weight: normal; ' > < table >

    < class td = "mainlabels" > < table >

    < class td = "mainlabels" > < table >

    < class td = "mainlabels" > < a href = "editmyprofile.php" style ="color: #F00; make-weight: bold; "> < u > < /u > < /a > < table > Edit

    < /tr >

    < tr >

    < td width = "93" class = "mainlabels" style = "do-size: 12px;" do-family: Arial, Helvetica, without serif. Color: #000; make-weight: normal; ' > < div align = "left" > name: < / div > < table >

    < td width = "192" class = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["register_name"];? > < / div > < table >

    < td width = "107" class = "mainlabels" > < div align = "left" > < / div > < table >

    < td width = "175" class = "mainlabels" > < div align = "left" > < img src = "images/small_logo.jpg" width = "100" height = "25" alt = "Petit Logo" / > < / div > < table > "

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > < span class = "mainlabels" > </span > PrimaryEmail: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["register_pemail"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > Second E-mail: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["register_semail"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > land line: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["register_phone"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > cell phone: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["register_cellphone"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > user name: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["register_login"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > password: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["register_pass"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < class tr = "mainlabels" >

    < td colspan = "4" bgcolor = "#FF0000" style = "do-family:"Arial Black", Gadget, without serif;" do-size: 16px; color: #FFF; ' > < div align = "left" > Information of emergency Contact < / div > < table >

    < /tr >

    < tr >

    < td colspan = "2" class = "mainlabels" > < table >

    < class td = "mainlabels" > < table >

    < class td = "mainlabels" > < table >

    < /tr >

    < tr >

    < td colspan = "2" class = "mainlabels" > < div align = "left" > Emergency Contact 1 < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > name: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con1_name"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > Email: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con1_email"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > land line: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con1_land"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > cell phone: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con1_cell"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < td rowspan = "2" class = "mainlabels" > < div align = "center" > < img src = "images/emg_contact_btn_edited - 1.png" width = "75" height = "97" alt = "Emergency Contact button" / > < / div > < table >

    < /tr >

    < tr >

    < td colspan = "2" class = "mainlabels" > < div align = "left" > Emergency Contact 2 < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > name: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con2_name"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > Email: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con2_email"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > landline < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con2_land"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > cell phone: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con2_cell"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < td colspan = "2" class = "mainlabels" > < div align = "left" > Emergency Contact 3 < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > name: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con3_name"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > Email: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con3_email"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > land line: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con3_land"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > cell phone: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con3_cell"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < td colspan = "2" class = "mainlabels" > < div align = "left" > Emergency Contact 4 < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > name: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con4_name"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > Email: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con4_email"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > land line: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con4_land"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > cell phone: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con4_cell"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < td colspan = "2" class = "mainlabels" > < div align = "left" > Emergency Contact 5 < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > name: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con5_name"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > Email: < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con5_email"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > landline < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con5_land"];? > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > cell phone < / div > < table >

    < class td = "mainlabels" > < div align = "left" > <? PHP echo $row_rsmyprofile ["con5_cell"];? > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < class td = "mainlabels" > < div align = "left" > < / div > < table >

    < /tr >

    < tr >

    < class td = "mainlabels" > < table >

    < class td = "mainlabels" > < div align = "center" > < / div > < table >

    < class td = "mainlabels" > < table >

    < class td = "mainlabels" > < table >

    < /tr >

    < /table >

    Here is the code for the update of the folder page:

    <? php require_once('Connections/rescue.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    if (via 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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

      }

    return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}

    $updateSQL = sprintf ("UPDATE user_registration SET register_name = %s register_semail = %s register_pemail = %s, register_cellphone = %s, register_phone = %s, register_login = %s, register_pass = %s WHERE ID = %s",

    GetSQLValueString ($_POST ['register_name'], "text").

    GetSQLValueString ($_POST ['register_semail'], "text").

    GetSQLValueString ($_POST ['register_pemail'], "text").

    GetSQLValueString ($_POST ['register_cellphone'], "text").

    GetSQLValueString ($_POST ['register_phone'], "text").

    GetSQLValueString ($_POST ['register_login'], "text").

    GetSQLValueString ($_POST ['register_pass'], "text").

    GetSQLValueString ($_POST ['ID'], "int"));

    @mysql_select_db ($database_rescue, $rescue);

    $Result1 = mysql_query ($updateSQL, $rescue) or die (mysql_error ());

    $updateGoTo = "myprofile.php;

    if (isset {}

    $updateGoTo. = (strpos ($updateGoTo, '?'))? « & » : « ? » ;

    $updateGoTo. = $_SERVER ['QUERY_STRING'];

      }

    header (sprintf ("location: %s", $updateGoTo));

    }

    $colname_rseditmyprofile = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_rseditmyprofile = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_rescue, $rescue);

    $query_rseditmyprofile = sprintf ("" SELECT * from user_registration WHERE register_login = %s ", GetSQLValueString ($colname_rseditmyprofile,"text")");

    $rseditmyprofile = mysql_query ($query_rseditmyprofile, $rescue) or die (mysql_error ());

    $row_rseditmyprofile = mysql_fetch_assoc ($rseditmyprofile);

    $totalRows_rseditmyprofile = mysql_num_rows ($rseditmyprofile);

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 = utf-8 "/ >"

    < title > Untitled Document < /title >

    < / head >

    < body >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >

    < table align = "center" >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > name: < table >

    < td > < input type = "text" name = "register_name" value = "<?" PHP echo htmlentities ($row_rseditmyprofile ['register_name'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > main E-mail: < table >

    < td > < input type = "text" name = "register_pemail" value = "<?" PHP echo htmlentities ($row_rseditmyprofile ['register_pemail'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > Second E-mail: < table >

    < td > < input type = "text" name = "register_semail" value = "<?" PHP echo htmlentities ($row_rseditmyprofile ['register_semail'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > cell phone: < table >

    < td > < input type = "text" name = "register_cellphone" value = "<?" PHP echo htmlentities ($row_rseditmyprofile ['register_cellphone'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > land line: < table >

    < td > < input type = "text" name = "register_phone" value = "<?" PHP echo htmlentities ($row_rseditmyprofile ['register_phone'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > user name: < table >

    < td > < input type = "text" name = "register_login" value = "<?" PHP echo htmlentities ($row_rseditmyprofile ['register_login'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > password: < table >

    < td > < input type = "text" name = "register_pass" value = "<?" PHP echo htmlentities ($row_rseditmyprofile ['register_pass'], ENT_COMPAT, ' utf - 8');? ">" size = "32" / > < table >

    < /tr >

    < tr valign = "basic" >

    < td nowrap = "nowrap" align = "right" > < table >

    < td > < input type = "submit" value = "Update file" / > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_update" value = "form1" / >

    < input type = "hidden" name = "ID" value = "<?" PHP echo $row_rseditmyprofile ['ID'];? ">" / >

    < / make >

    < p > < / p >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($rseditmyprofile);

    ? >

    This topic has been moved to the Dreamweaver application development forum, which deals with PHP and other issues aside server.

    During the validation of the questions, it is useful to see your code, but he expects many others to trawl through hundreds of lines of code. You say the problem lies in the update page, so why put the profile if it does not work properly? However, in looking at the code of your profile page, it seems incomplete. In any case, we will not go if it doesn't work OK.

    When you describe a problem, it helps if you explain what happens when you load the page. Looking at your code, I'm pretty sure that the details of the user are never loaded in the update form. So, the update record server behavior has no way of knowing that you want to update the record.

    The problem is that you are using $_SESSION ['MM_Username'] to retrieve the details of the user in the rseditmyprofile recordset object, but there is no active session on the page.

    You need to add session_start() at the beginning of the update page. I suggest you add it here:

    
    		   
  • Unable to update record access

    Hello

    I have a page that I use to document the issue of a part of the database.
    It is supposed to create a record in the 'Question' table, documenting the reduction of parts (that part works)
    It is also supposed to increment the amount of part in the 'Main_Table' table by an update record server behavior.

    This is the part that doesn't work. I enclose the code in this CFM file (sorry, its a little long...) Any ideas what I'm doing wrong here?

    Thank you in advance,

    Eric

    PS You can see the actual page at: http://devo.dns2go.com/Issue.cfm?PartNumber=1234 & Contract = Aries % 201 X
    You will need to log in. Use Name: user password: user

    Thank you very much for the help. For the base of the other viewing this thread, I am attaching the labour code. When the Send button is enabled, the data is updated in the table and a new record is written to the Main_Table table.

    Thank you

    Eric

  • Update records double with different data

    Hi all

    I have a specific problem of migration. Data from a large table were migrated in another table, but the data for the destination column are absent due to some problems (which are not specific to this topic).

    Currently I am updating the data for the missing column in the new table.

    The problem is due to the current data in the newtable, there the duplicate lines and I have not found a way to make a map of lines so that the data for the missing column can be updated.

    create the table ancienne_table

    (

    fileNo varchar (10),

    folder varchar (10),

    fileType varchar (10),

    col_1 varchar (10),

    col_2 varchar (10),

    col_3 varchar (10),

    col_4 varchar (10)

    );

    INSERT INTO ancienne_table (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('ABC', "Folder1", "Type1", '111', '111', ' 111', null);

    INSERT INTO ancienne_table (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('ABC', "Folder1", "Type2", '111', '111', ' 111', null);

    INSERT INTO ancienne_table (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('GHI', 'Folder3', 'Type3', '333', '333', ' 333 ', ' 333');

    INSERT INTO ancienne_table (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('JKL', 'Folder4', 'Type3', '444', '444', ' 444 ', ' 444');

    INSERT INTO ancienne_table (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('MNO', 'Folder5', 'Type4', '555', '555', ' 555 ', ' 555');

    INSERT INTO ancienne_table (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('PQR', 'Folder6', 'Type4', '666', '666', ' 666 ', ' 666');

    INSERT INTO ancienne_table (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('STU', 'Folder7', 'Type5', '777', '777', ' 777 ', ' 777')

    create table NewTable

    (

    fileNo varchar (10),

    folder varchar (10),

    fileType varchar (10),

    col_1 varchar (10),

    col_2 varchar (10),

    col_3 varchar (10),

    col_4 varchar (10)

    );

    INSERT INTO NewTable (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('ABC', "Folder1", null, ' 111 ', '111' ', 111', null);

    INSERT INTO NewTable (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('ABC', "Folder1", null, ' 111 ', '111' ', 111', null);

    INSERT INTO NewTable (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('GHI', 'Folder3', null, '333 ', '333', '333' 333');

    INSERT INTO NewTable (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('JKL', 'Folder4', null, '444 ', '444', '444' 444');

    INSERT INTO NewTable (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('MNO', 'Folder5', null, '555 ', '555', '555' 555');

    INSERT INTO NewTable (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('PQR', 'Folder6', null, '666 ', '666', '666' 666');

    INSERT INTO NewTable (fileNo, folder, file type, COL_1, COL_2, COL_3, COL_4) VALUES ('STU', 'Folder7', null, '777 ', '777', '777' 777')


    Select * from ancienne_table;

    FILENO FILETYPE COL_1, COL_2 COL_3 COL_4 FOLDER

    ---------- ---------- ---------- ---------- ---------- ---------- ----------

    Type1 Folder1 ABC 111 111 111

    Type2 Folder1 ABC 111 111 111

    IGS Folder3 Type3 333 333 333 333

    JKL Folder4 Type3 444 444 444 444

    Folder5 Type4 555 555 555 555 MNO

    nPQR Type4 of Folder6 666 666 666 666

    STU Folder7 777 777 777 777 Type5

    Select * from NewTable.

    FILENO FILETYPE COL_1, COL_2 COL_3 COL_4 FOLDER

    ---------- ---------- ---------- ---------- ---------- ---------- ----------

    Folder1 ABC 111 111 111

    Folder1 ABC 111 111 111

    IGS Folder3 333 333 333 333

    JKL Folder4 444 444 444 444

    Folder5 555 555 555 555 MNO

    PQR Folder6 666 666 666 666

    STU Folder7 777 777 777 777

    When you try to update the column of file type for all records-

    Update NewTable set FileType = (select FileType from ancienne_table where Fileno = newtable.fileNo and folder = NewTable. File);


    It would work fine for all other cases with the exception of the first two that are currently double.

    It won't work of course because it would give - "row subquery returns more rows" error because of these duplicate records.

    I'm trying to update the file type column to the first two rows with values 'Type1' and 'Type2 '.

    Out of these two files, it won't matter whose recording of newtable is updated with 'Type1' and you get 'Type2 '.

    Please help with ideas around update duplicate records with the ancienne_table-specific data into newtable.

    Him below will work... You can update using ROWID, but the lines are duplicated. Must therefore first to define any id for these two lines replicated using row_number and then correspond with rn for the IDENTIFIER specified.

    MERGE INTO NewTable nt help

    (WITH qry1 AS

    (SELECT ot. File type,

    ot.fileNo,

    OT. Folder,

    ROW_NUMBER() ON rn (PARTITION BY ot.fileNo, ot.folder ORDER BY 'A') - you can get the line number based on any order

    Of ancienne_table ot

    ),

    qry2 AS

    (SELECT nt. File type,

    nt.fileNo,

    NT. Folder,

    ROW_NUMBER() over (PARTITION BY nt.fileNo, nt.folder ORDER BY 'A') rn,-you can get the line number based on any order

    NT. ROWID rd

    OF NewTable nt

    )

    SELECT q1.filetype,

    Q2.Rd

    OF qry1 q1

    JOIN qry2 q2

    ON q1. Folder = q2. Folder

    AND q1.fileNo = q2.fileNo

    AND q1.rn = q2.rn

    AND q2. FileType IS NOTHING - if necessary add this condition

    ) q1 ON (nt. ROWID = q1.rd)

    WHEN MATCHED THEN

    Updated the VALUE of filetype = q1.filetype;

  • UTL_FILE get_line help update records

    DECLARE

    v_random_no varchar2 (12);

    v_random_no1 varchar2 (12);

    -File Variables

    file_out UTL_FILE. TYPE_DE_FICHIER;

    ftell UTL_FILE. TYPE_DE_FICHIER;

    l_dir_path varchar2 (100): = ' / u02/app/dtc/outgoing_data/lc_5050 /';

    v_rec_cnt number;

    BEGIN

    Dbms_output.put_line ('Time beginning of Script DML' |) TO_CHAR (SYSDATE, "DD/MM/YYYY HH24:MI:SS"));

    v_rec_cnt: = 0;

    IF this is utl_file.is_open (file_out) then

    file_out: = utl_file.fopen (l_dir_path, 'subbu.txt', 'r');

    -file_out: = utl_file.fopen (l_dir_path, 'IDs_sq9416_RESPIMAT6967LS_grp6967_cnt117335_typePATIENTSTARTERKIT_10152014.txt', 'r');

    END IF;

    LOOP

    BEGIN

    UTL_FILE.get_line (file_out, v_random_no);

    Dbms_output.put_line (' documents updated :'|| no. v_random_no);

    Update dtc_opc_random_no

    SET attribute01 = 'PATIENT STARTER KIT'

    WHERE attribute01 = 'OFFICE '.

    AND org_prog_cam_id = 6967

    AND random_no = v_random_no;

    Dbms_output.put_line (' documents updated :'|| no. v_random_no);

    v_rec_cnt: = v_rec_cnt + Sql % rowcount;

    IF MOD(v_rec_cnt,50000) = 0

    THEN

    COMMIT;

    END IF;

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    EXIT;

    END;

    END LOOP;

    UTL_FILE. FCLOSE (file_out);

    Dbms_output.put_line (' documents updated :'|| no. v_rec_cnt);

    Dbms_output.put_line ('End time of Script DML' |) TO_CHAR (SYSDATE, "DD/MM/YYYY HH24:MI:SS"));

    END;

    /

    I have the script above I have 4 files in subbu.txt file iam trying to update not only one record day

    SELECT * from dtc_opc_random_no

    WHERE org_prog_cam_id = 6967 AND attribute01 = 'OFFICE' and random_no in ()

    618062382,

    618062435,

    618062443

    ) 3 records exist in most high why it is updated only a record can u help me please

    DML Script start time: 13/11/2014 06:24:40

    Not record update: 618062382

    Not record update: 618062435

    Not record update: 618062443

    Not update files: 0

    End time of DML Script 13/11/2014 06:24:40

    PL/SQL procedure successfully completed.

    And you are sure that you don't have any space around the 'numbers' in your table or in your input file?

  • Insert and update records to MySQL from Oracle

    Hello

    Our application will be insert/update new records in the Oracle database, but I need to insert/update new records in the MySQL database. Oracle and MySQL tables have the same columns.

    Right now, we intend to create DBLink between Oracle and MySQL. The question is to know how to write code to insert/update new records to MySQL from Oracle. I'm a new guy in this area.

    Please give us some examples of code, thanks!

    With Oracle, you should be able to just write the same thing as usual, except for the include link database when you reference the table for example your SQL

    insert into tablename@mysqldblink...

    updating of the game tablename@mysqldblink...

    Services gateway through the database link (odbc drivers or anything else that is used) must make the most of the necessary conversions for you.

  • Update records with the text box

    APEX: 4.0.2

    THEME: SAND

    SERVER: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server

    I'm just letting my user paste values in a text box, click a button and then update some fields for this record.

    I created an example with more comments on the page:

    workspace: stevendooley34

    username: dev01

    password: dev01

    application: examples of Forum

    page: update example

    Keep in mind: the apex, theme, and Server version are different where I created the example. The above version, theme and the server are the stats of my workplace.

    Thank you

    Steven

    -changes

    Or if the modification of the code below would be easier I can go that route.

    Update oef_itv_ndn

    Set cancelled_cd =: MMR_CANCELLED_CD.

    closed_date =: MMR_CLOSED_DATE.

    admin_remarks =: MMR_ADMIN_REMARKS

    where abc = '12345';

    I created a dynamic Action with the above code works correctly.

    but instead of "abc = '12345' 'I need it to be" where abc in: SEARCH_INPUT "

    : SEARCH_INPUT is the text box that users can paste values in this format:

    12345

    67890

    98765

    so, when it comes to the clause "where" I need to maintain all records that are in the text box.

    Post edited by: StevenD609

    The "WHERE" clause is in the wrong position.

    It should be part of the "USING" clause)

    (the nickname table 'data' is defined in the scope of this subquery)

    In addition, it seems to me good.

    If you're still having problems, you can go to the forum 'SQL and PL/SQL '.

    MK

  • Get the updated record the last based on the Date and the van of the user ID corresponding (multiple tables)

    Hello people,

    I currently have a working for this using PL/SQL solution, but it would be nice to have it using SQL. Any help is appreciated and once again, to your practice time.

    I'm looking to pick up the most recent date and the corresponding user that updated registration for a student in particular. There are two tables T1 and T2. The most recent date can be the create_date or modified_date of T1 or T2.

    Scripts for creating the table and INSERT statements:

    create table T1
      ( code           varchar2(4),
        create_date    date,
        create_userid  varchar2(20),
        modified_date  date,
        modify_userid  varchar2(20));
    
    create table T2
      ( code           varchar2(4),
        visit_id       number,
        visit_date     date,
        create_date    date,
        create_userid  varchar2(20),
        modified_date  date,
        modify_userid  varchar2(20));
    
    

    insert into T1 values ('1001',to_date('06-FEB-2013 09:12:12','DD-MON-YYYY HH24:Mi:SS'),'ROGER',to_date('12-APR-2013 13:01:12','DD-MON-YYYY HH24:Mi:SS'),'BRIAN');
    insert into T2 values ('1001',1,to_date('10-JAN-2013','DD-MON-YYYY'), to_date('10-JAN-2013 14:12:12','DD-MON-YYYY HH24:Mi:SS'),'ROGER',to_date('12-MAR-2013 12:01:06','DD-MON-YYYY HH24:Mi:SS'),'AMY');
    insert into T2 values ('1001',2,to_date('31-JAN-2013','DD-MON-YYYY'), to_date('12-MAY-2013 16:11:12','DD-MON-YYYY HH24:Mi:SS'),'GRACIE',null,null);
    
    insert into T1 values ('1002',to_date('12-JAN-2013 11:12:13','DD-MON-YYYY HH24:Mi:SS'),'LYNNELLE',to_date('12-APR-2013 13:01:12','DD-MON-YYYY HH24:Mi:SS'),'BRIAN');
    insert into T2 values ('1002',1,to_date('10-JAN-2012','DD-MON-YYYY'), to_date('10-JAN-2012 09:12:12','DD-MON-YYYY HH24:Mi:SS'),'ROGER',to_date('12-APR-2013 13:04:12','DD-MON-YYYY HH24:Mi:SS'),'AMY');
    insert into T2 values ('1002',2,to_date('10-JAN-2013','DD-MON-YYYY'), to_date('12-JAN-2013 11:12:13','DD-MON-YYYY HH24:Mi:SS'),'JOHN',null,null);
    
    insert into T1 values ('1003', to_date('04-FEB-2014 12:01:01', 'DD-MON-YYYY HH24:Mi:SS'), 'LYNNELLE', null, null);
    
    

    I want to show for the three codes are the following records:

    Code      Table Date                              User ID
    1001      T2  12-MAY-2013 16:11:12   GRACIE
    1002      T2 12-APR-2013 13:04:12   AMY
    1003 T1 04-FEB-2014 12:01:01 LYNNELLE
    
    

    1001 students, the most recent is the create_date of the visit count = 2 for the Code 1002, the most recent date comes from modified_date for visit 1 (its 3 seconds later than the T1 modified_date). Finally, for students 1003 (who did not all records in T2, the create_date is the only date and must be picked up.

    Thanks in advance.

    with t as)

    Select the code,

    NVL (MODIFIED_DATE, create_date) dt.

    case nvl (modified_date, create_date)

    When modified_date then modify_userid

    of other create_userid

    end userid,

    Tbl "T1".

    from t1

    Union of all the

    Select the code,

    NVL (MODIFIED_DATE, create_date) dt.

    case nvl (modified_date, create_date)

    When modified_date then modify_userid

    of other create_userid

    end userid,

    Tbl 'T2 '.

    the t2

    )

    Select the code,

    Max (TBL) keep (dense_rank last order by dt, tbl) tbl.

    Max (DT) dt,

    Max (UserID) keep (dense_rank last order by dt, tbl) userid

    t

    Code group

    order by code

    /

    CODE TO DT USERID
    ---- -- -------------------- --------------------
    1001 T2 MAY 12, 2013 16:11:12 GRACIE
    1002 T2 12 APRIL 2013 13:04:12 AMY
    1003 T1 4 FEBRUARY 2014 12:01:01 MANON

    SQL >

    SY.

  • procedure for updating records

    I want to write a procedure.

    I have directed that is created after an interface table. He has a * decode _status * column that has a value either 'P' or 'NP '.
    Now I reprocess all records with 'NP' and update status using another table DECODE

    Staging table and decode table has a relationship.

    Put in scene table has columns SNO and SCODE where as DECODE table has columns SERIAL_NO and CODE

    Now. I have a join here staged. SNO = DECODE. SERIAL_NO. By using this join I get SCODE value as being code.

    Now can you please tell me how to upgrade these files which have 'NP' as DECODE_STATUS.

    I'm writing a procedure that gives me an error.

    Start
    so that S.DECODE_STATUS = 'NP'
    loop
    update of staging all SCODE = (case when (SNO) in (select S.SNO SCENE S layout, DECODER D WHERE D.SERIAL_NO = S.SNO) THEN D.CODE)
    OTHERWISE NULL TERMINATOR)
    end loop;
    end;

    Edited by: Chhatar on Sep 18, 2012 11:38

    Edited by: Chhatar on Sep 18, 2012 11:39

    It is ok for the source and target are the same.

    Do drag your staging tables and DECODE in the source of the interface box.
    Join the two tables on STAGING.sno = DECODE.serial_no
    Apply a filter to the table of staging STAGING.decode_status = 'NP '.

    In the target box, drag the staging table.
    Map the fields you want to update, as well as the join (serial_no) field

    In KM controls, select INSERT = FALSE & UPDATE = TRUE

    When you run this interface, ODI fills a flow table with the results of the join logic and source table filter (i.e. those which records where decode_status = 'NP'). It will then update the table setting with these results.

  • Update records with different IDS

    Hello

    I am looking for the possibility to update some records using the new id with the column with a different id values

    example of

    the table contains some these documents:
    id    gross      net
    
    ========================
    7     0,1     0,0507749
    8     0,2     0,1015499
    9     0,5     0,2538748
    10     0,83     0,4214
    11     0,85     0,4315873
    12     1,99     1,010422
    13     2,44     1,2389094
    14     0     0
    15     2,59     1,3150719
    16     2,99     1,5181718
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    and I would like to insert the same gross and net of IDS 7-16 column values
    column with the ID of 40 to 49 in the same order.
    This is why I would like to get the result that I describe below:
    id    gross      net
    
    ========================
    7     0,1     0,0507749
    8     0,2     0,1015499
    9     0,5     0,2538748
    10     0,83     0,4214
    11     0,85     0,4315873
    12     1,99     1,010422
    13     2,44     1,2389094
    14     0     0
    15     2,59     1,3150719
    16     2,99     1,5181718
    40    0,1     0,0507749
    41    0,2     0,1015499
    42    0,5     0,2538748
    43    0,83     0,4214
    44    0,85     0,4315873
    45    1,99     1,010422
    46    2,44     1,2389094
    47    0     0
    48    2,59     1,3150719
    49    2,99     1,5181718
    Thanks in advance
    update  y1
    set (gross, net)=(select gross, net from  y2 where y2.id=y1.id-33)
    where y1.id between 40 and 49;
    

    You must replace with your real tablename.
    (not tested).

  • FRM-40654 updated record by another user

    Hello friends... :)

    I want to join tables plug the motion
    I use this application, and my result is ok...
    But when I try to use this query at the form level
    then I get this error...

    FRM-40654: updated by another user record

    Please tell me how to solve this problem...

    Declare
    long mSQL;
    Begin

    / * msql: = ' (select * from time_attm one)
    where emp_ID = (select ID from personnel.personnel
    where id = a.emp_id
    Connect prior Id = mgr
    Start with id = ' | : global.id | '))';*/
    set_block_property ('time_attm', query_data_source_name, msql);
    execute_query;
    exception
    While others then
    Message(Error_Code ||) ' : ' || Texte_erreur);
    End;

    Al-Salamu Asalam we Rahmatu Allah we Barakatu...

    Adeel pls check if you have any rating triggers server working on tables in your form. Most likely, the same elements that are updated in your forms are also managed in a trigger server side.

    1-one way to solve this problem is to define the update and insert properties of these elements NOT in your block if they are handled in the trigger.

    2 - pls check the DML property for the block.

    3. you can also check your form and triggers after you after insertion, POST-update, AFTER validation and see what happens

    4 - or you have the number of columns in your block with a precision higher than in the database.

    5 - you can write your own SQL insert, update or DELETE statement in the form, editing a column value TO the same table that you update using a block of base table of standard forms.

    6 or forms block on the basis of the opinions and property button Mode = auto, pls Mode Set = Unique key.

    I hope this helps...

    Kind regards

    Amatu Allah.

  • Last updated record in a table

    Hello guys,.

    I have a huge table with it are NOT of any field with date or date and time.
    I just want to know what was the last record inserted and updated in this table? Oracle stores the timestamp of each record. How to retrieve by using the SQL query?

    My database is 10gr 2 and Linux is the operating system.

    Kind regards
    Imran

    I have a huge table with it are NOT of any field with date or date and time.
    I just want to know what was the last record inserted and updated in this table? Oracle stores the timestamp of each record. How to retrieve by using the SQL query?

    My database is 10gr 2 and Linux is the operating system.

    Visit this link

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1590655700346557237

  • I need to update Records - SQL

    I seem to get nulls for the underside of Variables in the code.

    TOT_TONS: = 3.2 * (BUCK_LOAD - BUCK_RETURN);
    TONS_LOAD1: = 3.2 * BUCK_LOAD;
    TONS_RETURN: = 3.2 * BUCK_RETURN;

    The select statement seem to choose the correct number of records. I don't know why it returns null in the loop. Any help will be much appreciated.


    DECLARE
       HOLD_BPT     number;
       TOT_TONS     varchar2(2000);
       BUCK_LOAD    number;
       BUCK_RETURN  number;
       TONS_LOAD    varchar2(2000);
       TON_RET      varchar2(2000); 
       BUCK_TON     number; 
       TONS_LOAD1   number; 
       TONS_RETURN  number;
    begin
    for rec in 
    ( 
      Select S.BUCKETS_LOADED, 
             S.BUCKETS_RETURNED,
             S.TONS_LOADED,
             S.TONS_RETURNED,
             S.BUCKETS_PER_TON 
        into 
             BUCK_LOAD,
             BUCK_RETURN,
             TONS_LOAD,
             TON_RET,
             BUCK_TON 
        from SNO.TRUCK S  
      where  S.LOADER_COUNTER = 293
    )
    loop
    
     TOT_TONS      :=  3.2 * (BUCK_LOAD - BUCK_RETURN);
     TONS_LOAD1    :=  3.2 * BUCK_LOAD;
     TONS_RETURN   :=  3.2 * BUCK_RETURN;
    
    --dbms_output.put_line(BUCK_TON);
    
    update SNO.TRUCK S
    set S.BUCKETS_PER_TON =  3.2,
        S.tons_loaded     =  tons_load1,
        S.tons_returned   =  tons_return,
        S.Total_Tons      =  tot_tons
    where 
     S.LOADER_COUNTER = 293;
    END LOOP;
    END;
    {/Code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Hello

    Try

    DECLARE
    BEGIN
      FOR c1 IN
      (SELECT s.buckets_loaded,
        s.buckets_returned,
        s.tons_loaded,
        s.tons_returned,
        s.buckets_per_ton
      FROM sno.truck s
      WHERE s.loader_counter = 293
      )
      LOOP
        UPDATE sno.truck s
        SET s.buckets_per_ton  = 3.2,
          s.tons_loaded        = 3.2 * c1.buckets_loaded,
          s.tons_returned      = 3.2 * c1.buckets_returned,
          s.total_tons         = 3.2 * (c1.buckets_loaded - c1.buckets_returned)
        WHERE s.loader_counter = 293;
      END LOOP;
    END;
    

    Kind regards
    Jari

  • Puzzled why this code does not work... (Update record) ASP/VB - please help.

    What I'm trying to do is to check two values of database and if they are what I said I want the code to run (record code update). Here's what I have:

    < % if (rsSoftwareRequests.Fields.Item("Approved"). Value) = "Yes" AND rsSoftwareRequests.Fields.Item ("EmailSent"). Value) = "False" then % >
    < %
    If (CStr (Request ("MM_update")) = "form1") then
    If (not MM_abortEdit) then
    'perform the update
    Dim MM_editCmd

    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_Intranet_New_STRING
    MM_editCmd.CommandText = "UPDATE SoftwareRequest SET EmailSent."
    =?, ApprovedByUserName =? WHERE ID =? »
    MM_editCmd.prepared = true
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param1",
    1, 50, 202 Request.Form ("EmailSent")) ' adVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param2",
    202, 1, 255, Request.Form ("ApprovedByUserName")) ' adVarWChar
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param3",
    5, 1, -1, MM_IIF (Request.Form ("MM_recordId"),
    Request.Form ("MM_recordId"), null)) ' adDouble
    MM_editCmd.execute
    MM_editCmd.ActiveConnection.close


    ' add the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "software_hardware1.asp".
    If (Request.QueryString <>"") then
    If (InStr (1, MM_editRedirectUrl, "?", vbTextCompare in) = 0) then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    On the other
    MM_editRedirectUrl = MM_editRedirectUrl & "" &
    Request.QueryString
    End If
    End If
    Response.Redirect (MM_editRedirectUrl)
    End If
    End If
    % >
    < % end If % >


    The recordset is set above the statement 'IF '... I put these values in the HTML body to see if it is pulling them correctly and yet it is the code under the IF statement is not pull out... I don't understand?


    Any help would be appreciated. Thank you!

    I think that is the oder of your orders, I did a quick page to test and it works fine, I left the sql insert at the top of the page where DW put and I think all his money form if SO, was the order in my page like this:

    Insert code - report
    RS for the values-

    <%If (rsSoftwareRequests.Fields.Item("Approved").Value) = "Yes" AND rsSoftwareRequests.Fields.Item("EmailSent").Value) = "False" Then%>


    FORM code right after IF THEN exposed


    <% end if %>

    Notice the document.form1.submit () is inside the IF THEN statement so it will trigger if the FI THEN returns true and that is not the value of the onLoad of the body, it should work, I left the record insertion code where DW puts but try it inside the fi can. NOTE: If the user has JS disabled the page will not work, but there are risks to everything!

Maybe you are looking for

  • Cannot install flash on new Windows 8 specifications

    I can't decide I hate more - Windows 8 or the new FireFox, because I feel that I've never seen a computer before trying to do things that used to be automatic. When I enter a site that wants to show a flash video, I see just a big black box, without

  • How can I keep slow-mo feature when you import to my Mac?

    I get two files, one video and another one mystery.  . AAE. What is everything?

  • HP F2480 - aligning not printing labels

    Hello my HP F2480 is a great little Office all in one, but I've never been able to print labels in word (office 2007). There seems to be a problem with the alignment and the tags do not match the model selected in word. It is strange, however, that s

  • Problem with the startup and the main functions of Council and the mouse

    When I come home from the office window, I have no function keyboard or mouse. When I press F8 at startup, the computer stops with two selections - either 1) continue with rebooting the system 2) Delete restoration data and proceed to system boot men

  • Activation error: product already in use key

    I changed my HDD may because old hard drive has been courupted he did reverse what it self and ask me to change the hard drive now, I changed the hard drive. It's been more than a year I m using windows vista, but suddenly microsoft request the activ