Edit / delete MySql records using dreamweaver Tutorial

is there any tutorials out there to show the edit & delete records, i can add records into a mySql database, then when i try and edit the list whatever record i try to edit off a edit list it just takes me to the first record on the database? instead of the record i have selected?
any ideas would be appreciated
Thanks

I know of a great book that you would really benefit from. I got started on php/mysql with it. Sometimes the author contributes on this forum too. It is called PHP Solutions by David Powers. It is way better than any simple tutorial.
If you are actually trying to learn php/mysql this book is going to be one you will reference frequently and find what you are looking for.
Good luck. Check out amazon, they usually have it for pretty cheap (about 30 USD).

Similar Messages

  • How to Delete Multiple Records using selectbox in jsf

    Hi!
    My Senario is I want to delete multiple records using checkbox. After selecting multiple records when i click the delete button the selected
    rows shuld be deleted.if am doing like this but the edit ,delete for each row functionality is not working.
    <h:selectBooleanCheckbox id ="bcb" value="#{item.empno}">
    </h:selectBooleanCheckbox>
    But other functionality is not wokring.
    Can any one plz tell how to select the multiple records and how to send the id to the serverside.
    I want code code for jsp and as well as backingBean how to accaess .
    Any Reply shuld be apreciated

    You may find this article useful as well: http://balusc.blogspot.com/2006/06/using-datatables.html
    Check the chapter "Select multiple rows" for two generic ways to select multiple rows in a datatable.

  • Is it possible to edit a google site using dreamweaver

    I'm using google sites for some of my low price costumers, and i was wondering what options exsist to use dreamveaver to update some of the gadgets like the text gadget.
    I know google does not support connecting fully with deamweaver or any other editor for that matter, but are there any plans for doing this in the furture, and what minot things can be doen at the moment ?
    Tomas
    søgemaskineoptimering-århus

    t259 wrote:
    I'm using google sites for some of my low price costumers, and i was wondering what options exsist to use dreamveaver to update some of the gadgets like the text gadget.
    I know google does not support connecting fully with deamweaver or any other editor for that matter, but are there any plans for doing this in the furture, and what minot things can be doen at the moment ?
    Tomas
    søgemaskineoptimering-århus
    To answer your specific question "Is it possible to edit a google site using dreamweaver" the answer is NO.  The reason is that Google does not allow uploading of web pagesusing any means such as FTP.  Google provies hundreds of templates to choose from and like you I don't like them at all.
    Microsoft had a free service long time ago that allowed you to upload your own pages but this has been stopped for new customers.  New customers are required to sign up to their Office 365 Service <http://tinyurl.com/bucc6t4> and this costs money.  However, you can build and host a website with a custom domain for your business.using their free software called Microsoft Sharepoint Designer 2010 <http://www.microsoft.com/download/en/details.aspx?id=16573>.  I believe they also have a 64 bit version to download but I only use 32 bit on my 64 bit systems!!
    Hope this helps.

  • Edit/delete/insert forms using php

    Hi,
    I have created an application that will allow me to
    edit/delete/insert data to my database using php.
    The functions work. But when I click on a tab i get an error
    like this:
    ypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at
    StoreManagement/runFeed()[C:\adobeStoreManagement\StoreManagement\src\StoreManagement.mxm l:26]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\co re\UIComponent.as:9051]
    at
    mx.containers::ViewStack/dispatchChangeEvent()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\containers\ViewStack.as:1165]
    at
    mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\sr c\mx\containers\ViewStack.as:672]
    at
    mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\containers\TabNavigator.as:504]
    at
    mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\ mx\core\UIComponent.as:5670]
    at
    mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:519]
    at
    mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:669]
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at
    mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\sr c\mx\core\UIComponent.as:8460]
    at
    mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src \mx\core\UIComponent.as:8403]
    Also the first time I click on the edit program link it
    doesnt show any data in the combo. Then when I click on new store.
    It fills up the comboboxes. When I go back to the edit program tab.
    It now also has the data inside the combobox.
    When I add a new program, store or categorie. It says
    operation succesfull. But the new program is not added to the new
    comboboxes. I have to close the browser and rerun the application.
    Then it shows the entered value inside the comboboxes.
    I have attached all my code for this application, any help
    would be greatly appreciated. Also could you advise me on what is
    the best approach to do this?
    With friendly regards,
    Thomas

    A few things:
    * Do not use lastResult in AS code. It is intended for use in
    binding expressions only. I suspect that it is the cause of your
    error, since it will not yet exist where you are trying to
    reference it.
    * All data service calls in Flex are asynchronous. this means
    you can *never* access the result data in the same function you
    call send(), as you are attempting.
    * Use a result handler for all HTTPService calls
    * Your data model methodology is *good*, using instance vars
    to hold ArrayCollections, and binding to those vars. Just set the
    vars in a result handler, instead of in the send function
    * the default resultFormat of HTTPService is object. This
    causes Flex to convert the HTTPService XML into a tree of dynamic
    objects. While it provides a quick start, it has long term
    drawbacks. I advise setting resultFormat="e4x", so that youcan use
    the powerful e4x XML API on your data.

  • Add/Edit/Delete Tree Nodes using CL_GUI_ALV_TREE

    Hi All,
    I am looking for an example of program with CL_GUI_ALV_TREE that have a functionality of add a tree node, edit a tree node, and delete a tree node.
    I have already looked the BCALV_TREE* demo program but could not able to find a program to add/edit/delete node tree elements.
    Any info on this.
    Thanks
    aRs

    Hello aRs
    Here is a sample report showing how to delete nodes in an ALV tree. The report was copied from BCALV_TREE_01. Search for added code:
    *$ADDED: begin
    *$ADDED: end[/code]
    When you display the tree expand the first folder completely. When entering 'DELETE' into the command field directly the first flight date node will be deleted.
    REPORT ZUS_SDN_BCALV_TREE_01_DELNODE.
    based on: REPORT  bcalv_tree_01.
    Purpose:
    ~~~~~~~~
    This report shows the essential steps to build up a hierarchy
    using an ALV Tree Control (class CL_GUI_ALV_TREE).
    Note that it is not possible to build up this hierarchy
    using a simple ALV Tree Control (class CL_GUI_ALV_TREE_SIMPLE).
    To check program behavior
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Start this report. The hierarchy tree consists of nodes for each
    month on top level (this level can not be build by a simple ALV Tree
    because there is no field for months in our output table SFLIGHT.
    Thus, you can not define this hierarchy by sorting).
    Nor initial calculations neither a special layout has been applied
    (the lines on the right do not show anything).
    Note also that this example does not build up and change the
    fieldcatalog of the output table. For this reason, all fields
    of the output table are shown in the columns although the fields
    CARRID and FLDATE are already placed in the tree on the left.
    (Of course, this is not a good style. See BCALV_TREE_02 on how to
    hide columns).
    Essential steps (Search for '§')
    ~~~~~~~~~~~~~~~
    1.Usual steps when using control technology.
       1a. Define reference variables.
       1b. Create ALV Tree Control and corresponding container.
    2.Create Hierarchy-header
    3.Create empty Tree Control
    4.Create hierarchy (nodes and leaves)
       4a. Select data
       4b. Sort output table according to your conceived hierarchy
       4c. Add data to tree
    5.Send data to frontend.
    6.Call dispatch to process toolbar functions
    *$ADDED: begin
    DATA:
      gd_del_nkey      TYPE lvc_nkey.
    *$ADDED: end
    §1a. Define reference variables
    DATA: g_alv_tree         TYPE REF TO cl_gui_alv_tree,
          g_custom_container TYPE REF TO cl_gui_custom_container.
    DATA: gt_sflight      TYPE sflight OCCURS 0,      "Output-Table
          ok_code LIKE sy-ucomm,
          save_ok LIKE sy-ucomm,           "OK-Code
          g_max TYPE i VALUE 255.
    END-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  PBO  OUTPUT
          process before output
    MODULE pbo OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR 'MAINTITLE'.
      IF g_alv_tree IS INITIAL.
        PERFORM init_tree.
        CALL METHOD cl_gui_cfw=>flush
          EXCEPTIONS
            cntl_system_error = 1
            cntl_error        = 2.
        IF sy-subrc NE 0.
          CALL FUNCTION 'POPUP_TO_INFORM'
            EXPORTING
              titel = 'Automation Queue failure'(801)
              txt1  = 'Internal error:'(802)
              txt2  = 'A method in the automation queue'(803)
              txt3  = 'caused a failure.'(804).
        ENDIF.
      ENDIF.
    ENDMODULE.                             " PBO  OUTPUT
    *&      Module  PAI  INPUT
          process after input
    MODULE pai INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'EXIT' OR 'BACK' OR 'CANC'.
          PERFORM exit_program.
    *$ADDED: begin
        WHEN 'DELETE'.
          CALL METHOD g_alv_tree->delete_subtree
            EXPORTING
              i_node_key                = gd_del_nkey
             I_UPDATE_PARENTS_EXPANDER = SPACE
              i_update_parents_folder   = 'X'
            EXCEPTIONS
              node_key_not_in_model     = 1
              OTHERS                    = 2.
          IF sy-subrc <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          CALL METHOD g_alv_tree->frontend_update.
    *$ADDED: end
        WHEN OTHERS.
    §6. Call dispatch to process toolbar functions
          CALL METHOD cl_gui_cfw=>dispatch.
      ENDCASE.
      CALL METHOD cl_gui_cfw=>flush.
    ENDMODULE.                             " PAI  INPUT
    *&      Form  init_tree
          text
    -->  p1        text
    <--  p2        text
    FORM init_tree.
    §1b. Create ALV Tree Control and corresponding Container.
    create container for alv-tree
      DATA: l_tree_container_name(30) TYPE c.
      l_tree_container_name = 'CCONTAINER1'.
      CREATE OBJECT g_custom_container
         EXPORTING
               container_name = l_tree_container_name
         EXCEPTIONS
               cntl_error                  = 1
               cntl_system_error           = 2
               create_error                = 3
               lifetime_error              = 4
               lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
        MESSAGE x208(00) WITH 'ERROR'(100).
      ENDIF.
    create tree control
      CREATE OBJECT g_alv_tree
        EXPORTING
            parent              = g_custom_container
            node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
            item_selection      = 'X'
            no_html_header      = 'X'
            no_toolbar          = ''
        EXCEPTIONS
            cntl_error                   = 1
            cntl_system_error            = 2
            create_error                 = 3
            lifetime_error               = 4
            illegal_node_selection_mode  = 5
            failed                       = 6
            illegal_column_name          = 7.
      IF sy-subrc <> 0.
        MESSAGE x208(00) WITH 'ERROR'.                          "#EC NOTEXT
      ENDIF.
    §2. Create Hierarchy-header
    The simple ALV Tree uses the text of the fields which were used
    for sorting to define this header. When you use
    the 'normal' ALV Tree the hierarchy is build up freely
    by the programmer this is not possible, so he has to define it
    himself.
      DATA l_hierarchy_header TYPE treev_hhdr.
      PERFORM build_hierarchy_header CHANGING l_hierarchy_header.
    §3. Create empty Tree Control
    IMPORTANT: Table 'gt_sflight' must be empty. Do not change this table
    (even after this method call). You can change data of your table
    by calling methods of CL_GUI_ALV_TREE.
    Furthermore, the output table 'gt_outtab' must be global and can
    only be used for one ALV Tree Control.
      CALL METHOD g_alv_tree->set_table_for_first_display
        EXPORTING
          i_structure_name    = 'SFLIGHT'
          is_hierarchy_header = l_hierarchy_header
        CHANGING
          it_outtab           = gt_sflight. "table must be empty !
    §4. Create hierarchy (nodes and leaves)
      PERFORM create_hierarchy.
    §5. Send data to frontend.
      CALL METHOD g_alv_tree->frontend_update.
    wait for automatic flush at end of pbo
    ENDFORM.                               " init_tree
    *&      Form  build_hierarchy_header
          build hierarchy-header-information
         -->P_L_HIERARCHY_HEADER  strucxture for hierarchy-header
    FORM build_hierarchy_header CHANGING
                                   p_hierarchy_header TYPE treev_hhdr.
      p_hierarchy_header-heading = 'Month/Carrier/Date'(300).
      p_hierarchy_header-tooltip = 'Flights in a month'(400).
      p_hierarchy_header-width = 30.
      p_hierarchy_header-width_pix = ' '.
    ENDFORM.                               " build_hierarchy_header
    *&      Form  exit_program
          free object and leave program
    FORM exit_program.
      CALL METHOD g_custom_container->free.
      LEAVE PROGRAM.
    ENDFORM.                               " exit_program
    *&      Form  create_hierarchy
          text
    -->  p1        text
    <--  p2        text
    FORM create_hierarchy.
      DATA: ls_sflight TYPE sflight,
            lt_sflight TYPE sflight OCCURS 0,
            l_yyyymm(6) TYPE c,            "year and month of sflight-fldate
            l_yyyymm_last(6) TYPE c,
            l_carrid LIKE sflight-carrid,
            l_carrid_last LIKE sflight-carrid.
      DATA: l_month_key TYPE lvc_nkey,
            l_carrid_key TYPE lvc_nkey,
            l_last_key TYPE lvc_nkey.
    §4a. Select data
      SELECT * FROM sflight INTO TABLE lt_sflight UP TO g_max ROWS.
    §4b. Sort output table according to your conceived hierarchy
    We sort in this order:
       year and month (top level nodes, yyyymm of DATS)
         carrier id (next level)
            day of month (leaves, dd of DATS)
      SORT lt_sflight BY fldate0(6) carrid fldate6(2).
    Note: The top level nodes do not correspond to a field of the
    output table. Instead we use data of the table to invent another
    hierarchy level above the levels that can be build by sorting.
    §4c. Add data to tree
      LOOP AT lt_sflight INTO ls_sflight.
    Prerequesite: The table is sorted.
    You add a node everytime the values of a sorted field changes.
    Finally, the complete line is added as a leaf below the last
    node.
        l_yyyymm = ls_sflight-fldate+0(6).
        l_carrid = ls_sflight-carrid.
    Top level nodes:
        IF l_yyyymm <> l_yyyymm_last.      "on change of l_yyyymm
          l_yyyymm_last = l_yyyymm.
    *Providing no key means that the node is added on top level:
          PERFORM add_month USING    l_yyyymm
                                 CHANGING l_month_key.
    The month changed, thus, there is no predecessor carrier
          CLEAR l_carrid_last.
        ENDIF.
    Carrier nodes:
    (always inserted as child of the last month
    which is identified by 'l_month_key')
        IF l_carrid <> l_carrid_last.      "on change of l_carrid
          l_carrid_last = l_carrid.
          PERFORM add_carrid_line USING    ls_sflight
                                           l_month_key
                                  CHANGING l_carrid_key.
        ENDIF.
    Leaf:
    (always inserted as child of the last carrier
    which is identified by 'l_carrid_key')
        PERFORM add_complete_line USING  ls_sflight
                                         l_carrid_key
                                CHANGING l_last_key.
      ENDLOOP.
    ENDFORM.                               " create_hierarchy
    *&      Form  add_month
    FORM add_month  USING     p_yyyymm TYPE c
                              p_relat_key TYPE lvc_nkey
                    CHANGING  p_node_key TYPE lvc_nkey.
      DATA: l_node_text TYPE lvc_value,
            ls_sflight TYPE sflight,
            l_month(15) TYPE c.            "output string for month
    get month name for node text
      PERFORM get_month USING p_yyyymm
                        CHANGING l_month.
      l_node_text = l_month.
    add node:
    ALV Tree firstly inserts this node as a leaf if you do not provide
    IS_NODE_LAYOUT with field ISFOLDER set. In form 'add_carrid_line'
    the leaf gets a child and thus ALV converts it to a folder
    automatically.
      CALL METHOD g_alv_tree->add_node
        EXPORTING
          i_relat_node_key = p_relat_key
          i_relationship   = cl_gui_column_tree=>relat_last_child
          i_node_text      = l_node_text
          is_outtab_line   = ls_sflight
        IMPORTING
          e_new_node_key   = p_node_key.
    ENDFORM.                               " add_month
    FORM add_carrid_line USING     ps_sflight TYPE sflight
                                   p_relat_key TYPE lvc_nkey
                         CHANGING  p_node_key TYPE lvc_nkey.
      DATA: l_node_text TYPE lvc_value,
            ls_sflight TYPE sflight.
    add node
    ALV Tree firstly inserts this node as a leaf if you do not provide
    IS_NODE_LAYOUT with field ISFOLDER set. In form 'add_carrid_line'
    the leaf gets a child and thus ALV converts it to a folder
    automatically.
      l_node_text =  ps_sflight-carrid.
      CALL METHOD g_alv_tree->add_node
        EXPORTING
          i_relat_node_key = p_relat_key
          i_relationship   = cl_gui_column_tree=>relat_last_child
          i_node_text      = l_node_text
          is_outtab_line   = ls_sflight
        IMPORTING
          e_new_node_key   = p_node_key.
    ENDFORM.                               " add_carrid_line
    *&      Form  add_complete_line
    FORM add_complete_line USING   ps_sflight TYPE sflight
                                   p_relat_key TYPE lvc_nkey
                         CHANGING  p_node_key TYPE lvc_nkey.
      DATA: l_node_text TYPE lvc_value.
      WRITE ps_sflight-fldate TO l_node_text MM/DD/YYYY.
    add leaf:
    ALV Tree firstly inserts this node as a leaf if you do not provide
    IS_NODE_LAYOUT with field ISFOLDER set.
    Since these nodes will never get children they stay leaves
    (as intended).
      CALL METHOD g_alv_tree->add_node
        EXPORTING
          i_relat_node_key = p_relat_key
          i_relationship   = cl_gui_column_tree=>relat_last_child
          is_outtab_line   = ps_sflight
          i_node_text      = l_node_text
        IMPORTING
          e_new_node_key   = p_node_key.
    *$ADDED: begin
      IF ( ps_sflight-fldate = '20040522' ).  " first flight date
        IF ( gd_del_nkey IS INITIAL ).  " collect only first date
          gd_del_nkey = p_node_key.
        ENDIF.
      ENDIF.
    *$ADDED: end
    ENDFORM.                               " add_complete_line
    *&      Form  GET_MONTH
          text
         -->P_P_YYYYMM  text
         <--P_L_MONTH  text
    FORM get_month USING    p_yyyymm
                   CHANGING p_month.
    Returns the name of month according to the digits in p_yyyymm
      DATA: l_monthdigits(2) TYPE c.
      l_monthdigits = p_yyyymm+4(2).
      CASE l_monthdigits.
        WHEN '01'.
          p_month = 'January'(701).
        WHEN '02'.
          p_month = 'February'(702).
        WHEN '03'.
          p_month = 'March'(703).
        WHEN '04'.
          p_month = 'April'(704).
        WHEN '05'.
          p_month = 'May'(705).
        WHEN '06'.
          p_month = 'June'(706).
        WHEN '07'.
          p_month = 'July'(707).
        WHEN '08'.
          p_month = 'August'(708).
        WHEN '09'.
          p_month = 'September'(709).
        WHEN '10'.
          p_month = 'October'(710).
        WHEN '11'.
          p_month = 'November'(711).
        WHEN '12'.
          p_month = 'December'(712).
      ENDCASE.
      CONCATENATE p_yyyymm+0(4) '->' p_month INTO p_month.
    ENDFORM.                               " GET_MONTH
    /code
    Regards
      Uwe

  • Getting Data From MySQL Database using Dreamweaver CS4 Built In Functions

    Hi,
    I am really in need of some help if you don't mind.
    I basically have a website with user regsitration system etc and so on.
    I basically connected to my Data Base in Dreamweaver CS4 and now want to use the tools in Dremweaver CS4 to display Data from database.
    Problem is i see the tools but not really sure how i use them. I see on Data bar all the tools to view, update delete records etc.
    I basically created a page where i want to display all the records in the DB. I done this using dynamic data selecting what fields to display etc and 15 records per page.
    When i view the page in localhost thou it is only showing 1 record althou i have like 5 users in my test db.
    So if anyone can really tell me how i go about displaying data from db that be great. When i learn how to do that i probably will understand and learn how to update records etc.
    Thanks

    To display all records, you need to apply a repeat region to the paragraph, div, or table row that contains the dynamic text objects for the database results. You might also find it helpful to follow the dynamic application tutorial in the Adobe Developer Connection.

  • Check table existence and delete entire records using Server 2005

    I am trying to delete the entire record of table after confirmation of Table existence using SQL Server 2005 SP3,
    query is as follows - 
    USE smsDB;
    GO
    IF (OBJECT_ID('organTable', 'U') IS NOT NULL)
    BEGIN
    PRINT 'Table Exists'
    DELETE FROM organTable;
    END
    ELSE
    BEGIN
    PRINT 'Table not Exists'
    END
    GO
    please help to delete the entire table records...
    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

    You code looks good.
    Are you facing any issues? Please explain.
    You can even try with truncate table...
    IF (OBJECT_ID('organTable', 'U') IS NOT NULL)
    BEGIN
    PRINT 'Table Exists'
    --DELETE FROM organTable;
    Truncate Table OrganTable
    END
    Sir, first of all thanks for reply & giving me your valuable time,
    i have learned some of the issues or dependencies with Truncate query, which are as follows -
    - Are referenced by a FOREIGN KEY constraint. (You can truncate a table that has a foreign key that references itself.)
    - Participate in an indexed view.
    - Are published by using transactional replication or merge replication
    because my tables exist some of above restrictions, please guide, is it right to use the truncate?
    Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.

  • Delete InfoType records using Idoc HRMD_A05?

    Hello,
    We have some unwanted 167 and 168 infotype records in our database that we would like to clean up.  Can we use HRMD_A05 to delete them?  I can't seem to find a delete function in the Idoc fields...I would truthfully like to use the LSMW, anyone know a way other than a simple recording?
    Thanks.
    --Jack

    Hi Eswar
    Thanks for the reply. I could not get what PFAL is. Actually, I am using IDocs to migrate data through LSMW. And I want the new HR objects to be numbered internally. However, if I leave the object ID field null and use 'Insert' for operation (OPERA) it gives error and does not post the application document (IDoc). It also gives error for operation 'Update'.
    I was expecting it would generate new numbers but it did not. And what I had in the IDoc documentation does not work.
    So do you or anybody has experienced such an issue before?
    Thanks

  • How do you Delete a Record using Form with submit button?

    Hi,
    The table REGISTRATION has two feilds, FULL_NAME and USER_GROUP. I created a form that has a drop down
    of all the FULL_NAME values that allows the user to select the record that they want to delete. I got the drop down to work and
    created the Delete Record behavior, I just can't get the submit button to send the form data and cause the delete to happen.
    I have created other pages that update records in this way, but for some reason, I can't get delete to work.
    Any Ideas?
    Thank You in Advance,
    Eric
    Ps     Anyone know why this site locks up in I.E. on some PC's? My Company PC is locked down and they won't investigate. My laptop works but says error on page. I have the latest updates and JAVA ...
    Here is the code:
    <cfif IsDefined("FORM.Full_Name") AND #FORM.Full_Name# NEQ "">
      <cfquery datasource="ilmf_parts">
      DELETE FROM REGISTRATION
    WHERE Full_Name=<cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
      </cfquery>
      <cflocation url="index.cfm">
    </cfif>
    <cfquery name="REGISTRATION" datasource="ilmf_parts">
    SELECT Full_Name, User_Group
    FROM REGISTRATION
    ORDER BY Full_Name ASC
    </cfquery>
    <!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" />
    <title>User Delete Test Page</title>
    </head>
    <body>
    <p align="center">USER DELETE TEST PAGE </p>
    <p> </p>
    <form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
      <table width="500" border="1" cellspacing="1" cellpadding="3">
        <tr>
          <th scope="col">NT Name </th>
          <th scope="col"><select name="select">
            <cfoutput query="REGISTRATION">
              <option value="#REGISTRATION.Full_Name#">#REGISTRATION.Full_Name#</option>
            </cfoutput>
          </select>
    </th>
        </tr>
        <tr>
          <td> </td>
          <td><input type="submit" name="Submit" value="DELETE" /></td>
        </tr>
      </table>
      <p> </p>
      <p> </p>
    </form>
    <p> </p>
    </body>
    </html>

    The name of your form control is "select".
    <select name="select">
    The name of your form field in your SQL is full_name
    <cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
    You probably really want these names to match!
    P.S.
    Is your name field really a "clob" data type?  Just how long are these names anyway.
    P.P.S.
    Why are you relocating from the page index.cfm to index.cfm?
    <form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
    <cflocation url="index.cfm">

  • Deleting multiple records using ibatis framework

    The code i am using is
    String deleteArray[ ] = request.getParameterValues("sel");
    String selected= " " ;
    if(deleteArray ! = null){
    for(int i = 0; i < deleteArray.length ; i++){
    selected += deleteArray [ i ];
    if( i < deleteArray.length - 1){
    selected += "," ;
    I am using sqlMapClient of ibatis for connecting to database
    sqlMapClient.delete("deleteMultipleRecords",selected);
    In my xml file i use
    <delete id="deleteMultipleRecords" parameterClass="java.lang.String">
    delete from ADDRESS where id in (#value#)
    </delete>
    When i execute the above code , the delete query is not executing.Can anyone help me out.

    I dont think so u can delete multiple recods with a sing line of querey.
    Why dont u use a for loop in DAO file and call the query with a single value ....

  • Can't use Dreamweaver tutorial...

    ...The initial screen, which presents several rectangular to display the tutorials don't work.  Instead of the usual black colored background with a "start arrow" to start the video, each box had a light grey background with a small "frowny face" in the center.  Clicking on it does nothing.

    Thanks for reply David.  Hmmm.  Well, I can play other videos under the "getting started" link in DW.  Also able to surf np.  But have tried many times, (including just now), with the same results.  I'll check on my end.  Maybe we can touch base on this again on Monday.

  • Popup Script for Save, edit & Delete Records

    Hi Friends,
    I developed an application, has got buttons like Save, edit, delete particular records. Is there any Java script for the above, to show popup Screens, like the   confirm java script
    <SCRIPT LANGUAGE="javascript">
    <!--
    function CONFIRM(){if (!confirm
    ("Are you Sure to  Edit Record?Ok=Yes,Cancel=No "))
    history.go(-1);return " "}
    document.writeln(CONFIRM())
    <!-- END -->
    </SCRIPT>
    pls mail me any sample code & Relevant weblogs regarding this.
    Regards
    CSM Reddy

    Hi,
    The following code will work... i have tested it.
    <b>test.jsp</b>
    <%@ page language="java" %>
    <html>
         <head>
              <title>
                   TestForm
              </title>
         </head>
         <script type="text/javascript">
    function confirmSAVE() {
    var save = confirm("Do u really want to save")
    if (save){
    alert("edit confirmed")
    window.document.myForm.action="test.jsp"
    window.document.myForm.submit()
    else
    alert("edit cancelled")
    function confirmDelete() {
    var del = confirm("Do u really want to delete")
    if (del){
    alert("del confirmed")
    window.document.myForm.action="test.jsp"
    window.document.myForm.submit()
    else
    alert("del cancelled")
    </script>
         <form name="myForm">
         <body>
              <table>
              <tr>
              <td colspan="2" align="center"><input type="button" style="background-color: #ffffff" name=save onclick="confirmSAVE()" value="SAVE">
              </td>
              <td colspan="2" align="center"><input type="button" style="background-color: #ffffff" name=delete onclick="confirmDelete()" value="DELETE">
              </td>          
              </tr>
              </table>
         </body>
         </form>
    </html>
    When you confirm edit or delete, the same test page will be displayed.
    Regards,
    Uma
    Message was edited by: Uma Maheswari

  • Auto create View/Edit/Delete cfm pages for databsae records? Anyone remember CF Studio?

    Anyone use Recordmaster wizard from back in the CF Studio
    days?? Sometimes I really miss it! Is there anything comparable
    available today for the current toolset (CFeclipse or Dreamweaver)?
    RecordMaster was a little automated wizard thing that you could
    just point to a DSN and a table, and it would build a nifty set of
    basic pages to do admin stuff, namely view, add, edit and delete
    records. Very good start to build quick and dirty admin pages, and
    super easy.
    There was even a little built in Studio wizard that would
    generate record view/edit/delete pages. All just basic cfm, no
    cfc's.
    Anyhing? I've got to build some admin type pages here on a
    table with lots of fields and don't want to do it all from scratch.
    If I can't find anything, I may search my CD archives for an old
    version of Studio just to use RecordMaster! What do others use for
    fast creation of database record admin pages???
    -Jeff

    Not exactly what you are looking for, but take a look at
    reactor (
    http://www.alagad.com/go/products-and-projects/reactor-for-coldfusion).
    It will create a database abstration layer on-the-fly for simple
    CRUD operations. A similar solution would be Illudium PU-36 (
    http://cfcgenerator.riaforge.org/).
    Similar concept to reactor, but used for one-time
    generation.

  • How do i create a styled spry mysql driven menu using dreamweaver cs4?

    How do i create a styled spry mysql driven menu using dreamweaver cs4?
    I have cs4. I gave up on using MS sql as a datasource. I finally got a php successfull connection in my PHP web page.
    I would like a nice video tutorial for creating a dynamic menu.
    I guess i can style it by attaching a css file to the page. Are their any already designed css files out there in some online area?
    i am not a good designer. so i would like to simply have a collection of menu_style.css files and choose what looks good.
    But first i need to build the spry menu from the mysql database.
    Any help is apprechiated.
    My first choice was to maintain the data in an MS sql server file. If i could directly attach to an ms sql datasource then that would be the best option.
    I dont think i want to have to re-generate an XML datasource each time i add or modify the menu. I would like to maintain the MS Sql or mySql file instead.
    If i could generate an XML datasource from the MS Sql database then I may even prefere that, but i have spent a lot of time trying to figure out how to do that and not had any success. So i prefere working in MS sql but would settle for mySql if i had to.
    Thanks
    Jerry

    To create a dynamic menu take a look here http://labs.adobe.com/technologies/spry/samples/menubar/MenuFromNestedData.html#
    The XML file for the above menu looks like this
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item id="0001" type="donut">
              <name>Cake</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
                   <batter id="1003">Blueberry</batter>
                   <batter id="1003">Devil's Food</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5006">Chocolate with Sprinkles</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0002" type="donut">
              <name>Raised</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5001">None</topping>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
         </item>
         <item id="0003" type="donut">
              <name>Buttermilk</name>
              <ppu>0.55</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
                   <batter id="1002">Chocolate</batter>
              </batters>
         </item>
         <item id="0004" type="bar">
              <name>Bar</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7001">
                        <name>None</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0.25</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0.25</addcost>
                   </filling>
              </fillings>
         </item>
         <item id="0005" type="twist">
              <name>Twist</name>
              <ppu>0.65</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5005">Sugar</topping>
         </item>
         <item id="0006" type="filled">
              <name>Filled</name>
              <ppu>0.75</ppu>
              <batters>
                   <batter id="1001">Regular</batter>
              </batters>
              <topping id="5002">Glazed</topping>
              <topping id="5007">Powdered Sugar</topping>
              <topping id="5003">Chocolate</topping>
              <topping id="5004">Maple</topping>
              <fillings>
                   <filling id="7002">
                        <name>Custard</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7003">
                        <name>Whipped Cream</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7004">
                        <name>Strawberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
                   <filling id="7005">
                        <name>Rasberry Jelly</name>
                        <addcost>0</addcost>
                   </filling>
              </fillings>
         </item>
    </items>
    Then remains the manner in which you create the XML file which can be found here http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    One you have your menu up and running, you will be able to apply styles and effects

  • MYSQL Error When Deleting multiple records

    Folks,
    I am finally converting my website from MS-Access to MySQL and until Monday I was having pretty good luck. However, I have come across a issue I cannot find any solution to and am wondering if one of you can assist.
    When I try to delete a number of records using tgeh same commands that worked in Access, I get this error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
    ODBC driver does not support the requested properties.
    /New_Site/Trade/Trade_Signup_Edit_Update.asp, line 34
    This is the code:
    Set adoCon2 = Server.CreateObject("ADODB.Connection") adoCon2.Open "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=MySQLB1.webcontrolcenter.com;" &_ "DATABASE=pinotdays; UID=pinotdays; PASSWORD=********; OPTION=3" Set rsTrade_List = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM Trade_List WHERE Entity_Number = " & request.form("ID") rsTrade_List.CursorType = 2 rsTrade_List.LockType = 3 rsTrade_List.Open strSQL, adoCon2 Set rsTrade_Delete = Server.CreateObject("ADODB.Recordset") StrSql = "DELETE * FROM Trade_List Where Parent_Entity_Number=" & request.form("ID") & " AND Entity_Number <> " & request.form("ID") rsTrade_Delete.CursorType = 2 rsTrade_Delete.LockType = 3 rsTrade_Delete.Open strSQL, adoCon2
    The error occurs on the final line listed. Being new to MySQL, I thought I would change teh driver to 5.1 but that brought me nowhere. I used "SELECT" in the string and tried to do rsTrade_Delete.Delete and that did not work. I tried to delete a single record by selecting a ID=1 and that did not work.
    So, is there a trick to deleting records in MySQL?
    Thanks for your help....
    Regards,
    Steve

    StrSql = "DELETE * FROM Trade_List Where Parent_Entity_Number=" &
    request.form("ID") & " AND Entity_Number <> " &
    request.form("ID")
    The DELETE statement for MySQL deletes entire rows. No need to specify fields (or all fields with the asterisk). In fact, that should probably result in a syntax error.
    StrSql = "DELETE FROM Trade_List Where Parent_Entity_Number=" & request.form("ID") & " AND Entity_Number <> " & request.form("ID")
    Mark A. Boyd
    Keep-On-Learnin' :-)

Maybe you are looking for