Help me please with this code

Hello

It is the first program that I tried to write alone... and I'm stuck. I am trying to acquire data from a scope. I want the vi to load only the first field of application preparation time, the code is executed. Once the installation has been loaded, I want just the vi in order to reset the scope in order to acquire more data. I tried the first call, structures of the case,... all I can think about, but when I continually run the vi, it still loops and reloads the configuration every time. I have attached a picture of the code vi and describes the area of the code in question. The case structure is programmed to initialize the scope for open communications, then erase all existing data, and then call a program of specific scope to true. Wrong, I want only this setting of the code to initialize the communication within reach yet reminiscent of the configuration. A professional can explain it please how I'm supposed to accomplish this. Thank you

If you use RUN continuously to keep something running, you are indeed pushing the button RUN every time it stops, the function PREMI¨¨RE will return TRUE every time.

There are ways to do exactly what you're asking, but you are better off looking at the heart of your question:

You need a loop.

Put a loop around the part you want to do on several occasions.

Create a STOP button to stop the loop.

Make your INIT orders only once outside of the loop and make sure that the INIT part something happening in the WHILE loop

(to make sure that the loop starts after INIT).

Tags: NI Software

Similar Questions

  • Dear experts. Help me please with this request.

    I'm generating a report in dev6i.
    the following query does not work correctly. and also fetch data with (+) outer join.

    Select i.itemcode, sum (gs.approved) - sum (iss.issuedqty)
    ims_itemcode i, ims_issues iss, ims_grns gs
    where i.itemcode = gs.itemcode and gs.itemcode = iss.itemcode (+) of the i.itemcode group.


    but I have to join two tables over (ims_issuem, ims_grnm)
    After the addition of these two tables, the query will be

    Select i.itemcode, sum (gs.approved) - sum (iss.issuedqty)
    ims_itemcode i, ims_issues iss, gs ims_grns, im ims_issuem, gm ims_grnm
    where i.itemcode = gs.itemcode and gs.itemcode = iss.itemcode (+) and gm.grnmserial = gs.grnsserial and
    Group im.issuemserial = Iss.issuesserial by i.itemcode;

    now the query works, but isn't going to pick up the results with outer (+) join. It takes only the results that correspond to the tables, but I want the results as well as the outer (+) join.
    What is the problem in the second request help please.

    You must add more join.

    Try this...

    select i.itemcode,sum(gs.approved)-sum(iss.issuedqty)
    from ims_itemcode i,ims_issues iss, ims_grns gs, ims_issuem im, ims_grnm gm
    where i.itemcode=gs.itemcode (+)
    and gs.itemcode=iss.itemcode(+)
    and gm.grnmserial(+)=gs.grnsserial
     and im.issuemserial(+)=iss.issuesserial
    group by i.itemcode;
    

    If not work, try something. After your first request. Add a table and check if need to add outer join.

    Hope this helps

    Hamid

  • I'm getting ready to order to fill through Adobe Reader, I have a special price (if you buy a product cost $11 characters of the same product will cost $9 could help me please to this)

    I'm getting ready to order to fill through Adobe Reader, I have a special price (if you buy a product cost $11 characters of the same product will cost $9 could help me please to this)

    So let's say that the quantity field is called 'Quantity' and the total field is called 'Total '.

    You can use this code as the calculation for Total custom script:

    var quantity = Number(this.getField("Quantity").value);
    if (quantity<=1) event.value = quantity*11;
    else event.value = 11 + (quantity-1)*9;
    

    PS. I'm moving this question on the forum of PDF forms

  • create the code with this code snippet

    I'm curious...

    I can't create a snippet of code with this code. (located in the first post)

    http://forums.NI.com/T5/LabVIEW/event-structure-with-value-changes/m-p/1937505#M646059

    However, I can create excerpts of its subsections.

    Tried different versions of LabVIEW with the same result.

    Can someone create a snippet?  Just curious.

    I'm not stuck or anything... just curious...  Maybe I should have posted the breakpoint...

  • Had to reformat my hard drive, now when I try to reinstall Windows XP I get a blue screen with this code at the end 0x0000007b.

    has had to reformat my hard drive now when he star0x0000007b (0x78d663c, 0xc0000034, 0x00000000, 0x00000000)

    has had to reformat my hard drive, now when I try to reinstall windows xp, I get a blue screen with this code at the end 0x0000007b (0x78d663c, 0xc0000034, 0x00000000, 0x00000000) how to solve this problem

    Hello

    I saw the 0x0000007B BSOD caused by trying to install XP on a disk hard while the BIOS is designating the reader as AHCI instead of IDE. XP has no native AHCI drivers, resulting in a stop 7B. Unless the PC had originally Vista or Win 7, but it might be useful to check that it is not likely.

    If the BIOS is set to AHCI, you could do one of three things (depending on whether your PC has a floppy drive)...

    1 find the Setup F6 disk on AHCI support at installation time (start with the manufacturer's website if you do not already have such a thing). Watch the very hit F6 prompt early in the installation process.

    2. change the setting in BIOS on IDE / ATA

    3. create a new "slipstreaming" installation disc drivers AHCI in the existing installation disc, see http://www.nliteos.com/index.html

    After the back if your BIOS is IDE / ATA

    Tricky

  • Help me please with admob?

    Hello Help me please with admob ? How intergate admob on adobe flash cs can someone help me please?

    Your questions seems to have nothing to do with AdMob. Start a new thread with your question here: Adobe animate Ad development

  • Help with this code please...

    Hi all

    I have a repeating line in a table (+ \-bouton on each line to add / remove). On each line, the user selects a value in a list drop-down down (drop-down list is filled with a literal JavaScript object if it has no chance)

    What I have to do is to check the duplicate drop-down selections on different lines and warn the user that they have selected a value twice.

    I currently have this code in the change event of the ComboBox that works very well, but for the first line only -how to twist it works for all instances of the repeated line "FullRowSubForm"?

    If (xfa.event.newText is form1. WorkforceDepSubForm.WorkforceLineSubform.FullRowSubForm.RepeatableRow.WorkforceRow1. WorkforceNameTextField.rawValue)

    {

    xfa.host.messageBox ("BEWARE you have already selected" + xfa.event.newText + "\n" + "\n" + "that one instance of dependencies should be chosen - please choose another addiction or delete.");

    }


    Thanks in advance

    Ellis

    Hello

    Your repetitive element is FullRowSubForm, don't know if that's right... it maybe too .parent is in the code to add

    In any case, it should work.

    If (form1. WorkforceDepSubForm.WorkforceLineSubform.resolveNodes ("FullRowSubForm. [RepeatableR OE. WorkforceRow1.WorkforceNameTextField ==------"" + xfa.event.newText + "\"]").length > 0) {}

    Concerning

    Bruce

  • Need help with this code to update the user interface example

    I'm triying to understand the differences between the three methods to manage UI interactions.
    I'm really confused with these three terms when triying them figure out in a real case.
    Basically, I know that I should use invokeLater, invokeAndWat, or getEventLock() to avoid
    This exception: java.lang.illegalStateException: engine access UI without holding the lock on the event

    The code below illustrates the function of the invokeAndWait method, but if I replace it with
    invokeLater or getEventLock() the program will work exactly the same way.
    Could you please change the code to show the differences between the three
    methods of updating the user interface?

    / public final class HelloWorldMainScreen extends form {}

    private LabelField labelField;
    public HelloWorldMainScreen() {}
    labelField = new LabelField ("Hello World");
    Add (labelField);
    Thread MainScreenUpdaterThread = new MainScreenUpdaterThread (this);
    thread. Start();
    }

    {} public void appendLabelText (String text)
    labelField.setText(labelField.getText()+"\n"+text);
    }

    }

    SerializableAttribute public class MainScreenUpdaterThread extends Thread {}
    HelloWorldMainScreen screen;

    public MainScreenUpdaterThread (screen HelloWorldMainScreen) {}
    this.mainScreen = screen;
    }

    public void run() {}
    for (int i = 0; i)< 10;="" i++)="">
    try {}
    Thread.Sleep (5000);
    } catch (InterruptedException ex) {};
    UiApplication.getUiApplication () .invokeAndWait (new Runnable() {}
    public void run() {}
    mainScreen.appendLabelText ("Update");
    }
    });

    }
    }
    }

    These three concepts are very confusing for a lot from people so all explanatory source code
    describing their functions will be highly useful for everyone, I think.

    Thanks in advance!

    With respect to the effect, there is no difference between methods.  The difference is the way in which the result is achieved.  So we can't change the code to show you the difference.

    As we are unable to demonstrate the difference, you have to do with an explanation.  To understand the explanation, you'll need to understand the thread of events, so if you have not already, please consider this:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

    If the three options are differentiated by the processing order:

    (a) invokeLater executes the update on the thread of events.  The transformation takes place at a later stage and the code which is in order after the invokeLater will actually run before the code within the invokeLater.

    (b) invokeAndWait also manages the update on the thread of events, which means that all other events that await on the thread of events will be run before this code.  But any code after the invokeAndWait will not be executed.

    (c) the synchronized option, like invokeAndWait, runs the update of the UI before moving on to the following code.  The difference is that the code to run on the event Thread is not executed before code in the synchronized block.

    If this is meaningless, so that probably does not matter too much.  in general, you should use invokeLater, except if you need to update the user interface occur in the order with your background processing.  If so, use invokeAndWait. It has synced are very few occasions where you must use the block, and it should be very small updates to the user interface and you should understand the implications this could have on the wire events.

  • Help, had fights with this sql for a day now

    Grateful if someone could give me a pointer here. fighting with this thing for a day and can't do things.

    Have 2 tables
    tbl_ate_jun & tbl_pd_jun
    the two paintings by xt

    This is creates it for everyone.
    CREATE TABLE "ME"."TBL_PD_JUN"
      (
        "ID"                  VARCHAR2(500 BYTE),
        "PROJECT_NUMBER"      VARCHAR2(500 BYTE),
        "PROJECT_NAME"        VARCHAR2(500 BYTE),
        "DESCRIPTION"         VARCHAR2(500 BYTE),
        "PROJECT_TYPE"        VARCHAR2(500 BYTE),
        "ORGANIZATIONAL_NAME" VARCHAR2(500 BYTE),
        "CUSTOMER_NAME"       VARCHAR2(500 BYTE),
        "OFFICE_FSR"          VARCHAR2(500 BYTE),
        "PROGRAMS_FSR"        VARCHAR2(500 BYTE)
      )
      ORGANIZATION EXTERNAL
      (
        TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FTP" ACCESS PARAMETERS ( records delimited BY newline skip 0 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES ARE NULL ) LOCATION ( 'tbl_pd_jun.csv' )
      ) ;
    CREATE TABLE "ME"."TBL_ATE_JUN"
      (
        "ID"                        VARCHAR2(500 BYTE),
        "PERSON_SSO"                VARCHAR2(500 BYTE),
        "FIRST_NAME"                VARCHAR2(500 BYTE),
        "LAST_NAME"                 VARCHAR2(500 BYTE),
        "VOUCHER_HOURS"             VARCHAR2(500 BYTE),
        "FISCAL_YEAR_WEEK"          VARCHAR2(500 BYTE),
        "ORG_TIER2_NAME"            VARCHAR2(500 BYTE),
        "ORG_TIER3_NAME"            VARCHAR2(500 BYTE),
        "VOUCHER_REASON"            VARCHAR2(500 BYTE),
        "VOUCHERING_STATUS"         VARCHAR2(500 BYTE),
        "ORG_TIER4_NAME"            VARCHAR2(500 BYTE),
        "TIER4_MANAGER_NAME"        VARCHAR2(500 BYTE),
        "VOUCHER_CODE"              VARCHAR2(500 BYTE),
        "VOUCHER_DESCRIPTION"       VARCHAR2(500 BYTE),
        "PERSON_COUNT"              VARCHAR2(500 BYTE),
        "HOUR_TYPE"                 VARCHAR2(500 BYTE),
        "APPLIED_FLAG"              VARCHAR2(500 BYTE),
        "COST_CENTER_CODE"          VARCHAR2(500 BYTE),
        "VOUCHER_CLASS"             VARCHAR2(500 BYTE),
        "VOUCHER_CLASS_DESCRIPTION" VARCHAR2(500 BYTE),
        "VOUCHER_SUB_CLASS"         VARCHAR2(500 BYTE),
        "PROGRAM_TYPE"              VARCHAR2(500 BYTE),
        "PAYCODE_NAME"              VARCHAR2(500 BYTE),
        "PAY_CODE"                  VARCHAR2(500 BYTE)
      )
      ORGANIZATION EXTERNAL
      (
        TYPE ORACLE_LOADER DEFAULT DIRECTORY "XE_FTP" ACCESS PARAMETERS ( records delimited BY newline skip 0 fields terminated BY ',' OPTIONALLY ENCLOSED BY '"' MISSING FIELD VALUES ARE NULL ) LOCATION ( 'tbl_ate_jun.csv' )
      ) ;
    Basically, in tbl_ate_jun, it has all the user ID (person_sso)
    Im trying to generate a report that contains all person_sso numbers in the first column.
    Second column have applied_hours, then office_hours, then programs_hours, then total_hours, then diff_hours (difference).

    Here's the code so far, but I just cant get, it is true, that it shows never all of the sso, each select individually works very well, but may not be combined, does not work well.

    select a.person_sso,NVL(sum(b.applied_hours),0),NVL(sum(c.office_hours),0),NVL(sum(d.programs_hours),0),NVL(sum(e.total_hours),0),NVL(sum(f.diff_hours),0) 
    from 
    
    tbl_ate_jun a,
    
    (SELECT
    tbl_ate_jun.person_sso as applied_sso,
    tbl_ate_jun.Voucher_Hours as applied_hours
    FROM
    tbl_pd_jun,
    tbl_ate_jun 
    WHERE
    tbl_ate_jun.voucher_code IN (select project_number from tbl_pd_jun
    where Office_FSR IS NULL AND Programs_FSR IS NULL)
    and tbl_ate_jun.voucher_code=tbl_pd_jun.project_number
    )b,
    
    
    (SELECT
    tbl_ate_jun.person_sso as office_sso,
    tbl_ate_jun.Voucher_Hours as office_hours
    FROM
    tbl_pd_jun,
    tbl_ate_jun
    WHERE
    tbl_pd_jun.Project_Number=tbl_ate_jun.Voucher_Code AND tbl_pd_jun.Office_FSR = 'Y' 
    )c,
    
    (SELECT
    tbl_ate_jun.person_sso as programs_sso,
    tbl_ate_jun.Voucher_Hours as programs_hours
    FROM
    tbl_pd_jun,
    tbl_ate_jun
    WHERE
    tbl_pd_jun.Project_Number=tbl_ate_jun.Voucher_Code AND tbl_pd_jun.Programs_FSR = 'Y'  
    )d,
    
    (SELECT
    tbl_ate_jun.person_sso as total_sso,
    tbl_ate_jun.Voucher_Hours as total_hours
    from
    tbl_ate_jun 
    )e,
    
    
    (SELECT
    tbl_ate_jun.person_sso as diff_sso,
    tbl_ate_jun.Voucher_Hours as diff_hours
    from
    tbl_ate_jun
    WHERE voucher_code NOT IN (select project_number from tbl_pd_jun)
    )f
    
    
    where
    a.person_sso=b.applied_sso
    and a.person_sso=c.office_sso
    and a.person_sso=d.programs_sso
    and a.person_sso=e.total_sso
    and a.person_sso=f.diff_sso
    
    group by a.person_sso
    Help, please. not every column is filled with a sum of data, some would be empty if it applies to the sso.

    Published by: Jay on August 10, 2011 07:45

    not every column is filled with a sum of data, some would be empty if it applies to the sso.

    You will probably need to OUTER JOIN then...
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/queries006.htm#sthref3295
    http://www.Oracle-base.com/articles/9i/ANSIISOSQLSupport.php#outer_join

  • Last month, I bought a license for Adobe Creative cloud with this code installiation [code deleted by the moderator of privacy]. Can you tell me on which account this code is activated

    Last month I bought a license for Adobe Creative Cloud with this installation code [code deleted by the moderator of privacy]. Can you tell me on which account this code is activated

    In this case, you must contact Adobe technical support.

    Click always need Help (help), and then select the Chat option:

    Contact the customer service

  • Please explain this code

    I take the test and found this code-

    public class Outer
    {

       public void someOuterMethod()
      {
       //Line 5
      }
       public class Inner { }
      
       public static void main(String[] argv)
      {
      Outer ot = new Outer();
       //Line 10
      }
    }

    The following code fragments inserted, for compiling?

    A.New inner(); On line 5
    B.New inner(); On line 10
    C.OT again. Inner(); On line 10
    D.new Outer.Inner (); On line 10

    Answer is A.

    Why not the answer is B?

    well explained by cardan2

    further explanation

    Option A compile without problem

    Option B gives an error - variable not static cannot be referenced from a static context.

    There is no option package C only ot.

    Option D gives an error - variable not static cannot be referenced from a static context.

    hope you get it

  • Can someone help me to crack this code

    Hello

    I'm working on a few different scripts to complete the banners... Recently, I came across this one and I do not understand cant someone expian for me...

    Basically, the banner is on the maintimeline and the code is as follows in each of these images:

    Section 1:

    var maxPlays:Number = 4;

    If (timesPlayed == undefined) {}

    var timesPlayed:Number = 3;

    Section 45: (where the movie finally stop playing for good:)

    If {(stopEarly)

    stop();

    }

    Frame 80: last image of the timeline:

    If (timesPlayed < maxPlays) {}

    timesPlayed ++;

    gotoAndPlay (1);

    } else {}

    stopEarly = true;

    gotoAndPlay (1);

    }

    Some of my random Questions are:

    If the loops of film 3 times, why this var maxPlays = 4

    also, in the last line of code on frame 80 - gotoAndPlay (1); -If it stops at this place of stopEarly, why is this line? It seems to work without it as well, but I'm curoius why it's here.

    Anyhelp tellimh me how this code is greatly appreciated!

    Thank you

    Babs

    There must be a two other lines on frame 1:

    var timesPlayed;

    var stopEarly;

    Or the code would not work.

    Seems sort of hackey, but I'll walk through you it:

    Framework 1, play 1:

    timesPlayed is not defined, so it gets the value 3.

    45 1 frame game:

    stopEarly is not defined, which is false, then the read head keeps going.

    80 1 frame game:

    3 is less than 4, so timesPlayed gets incremented to 4 and at the playhead is moved to frame 1.

    Frame 1 exhibit 2:

    nothing happens (it is not indefinite of timesPlayed).

    45 2 frame game:

    stopEarly is not defined, which is false, then the read head keeps going.

    80 2 frame game:

    4 is not less than 4 stopEarly Yes Gets the true value and the playhead is moved to frame 1.

    Frame 1 Exhibit 3:

    nothing happens (it is not indefinite of timesPlayed).

    45 3 frame game:

    stopEarly is true, then the read head is stopped.

    To make the code more understandable, timesPlayed should be set to 1 instead of 3 if it is not set, this way maxPlays will actually represent the maximum number of full game-through.

  • Current month data: Help needed to change this code a return procedure

    Hello people I this scenario where I need to change the code so that there return data compared to the month current day to the day before if it's a daily report and data from the months preceding it is a monthly report.
    I have no idea how to change this code below. Currently the code returns the data of the monthly reports for the previous month. Someone has any idea how to change so that the code meets the requirements of daily and monthly reprts.



    BEGIN

    If v_lowdate is null or v_highdate is null then
    Select to_number (to_char (sysdate, 'DD')) double v_cur_day;
    If v_cur_day < 25 may
    -It's for the month to run
    Select Add_Months (trunc (sysdate, 'MONTH'), - 1).
    IN V_LOWDATE
    FROM DUAL;

    SELECT Last_Day (ADD_Months (Sysdate-1)) INTO V_Highdate From Dual;
    on the other
    -This is for the current delivery month
    Select trunc (sysdate, 'MONTH') IN V_LOWDATE FROM DUAL;

    SELECT Last_Day (Sysdate) IN the double V_Highdate;
    end if;

    end if;




    Thank you

    Published by: user11961230 on September 30, 2009 20:34

    Hello

    The revised version of the code below, statement a daily report on every day except the 1st of the month, will include the dates of the first of the month through yesterday.
    If a daily report is requested on the 1st of the month, then it will start the 1st of the month form last through yesterday (which is the last day of the previous month, making it the equivalent of a monthly report). I've added comments in the code on the lines that check these things.

    v_cur_day := TO_CHAR (SYSDATE, 'DD');
    
    IF  report_type = 'D'                         -- Daily report
    AND v_cur_day > '01'                         -- (except when run on 1st of the month)
    THEN                                   -- will cover from
    
         v_lowdate  := TRUNC (SYSDATE, 'MONTH');          -- 1st of this month to
         v_highdate := TRUNC (SYSDATE - 1);          -- yesterday
    ELSIF  report_type = 'M'                    -- Monthly report
    OR     (     report_type = 'D'               -- (or Daily report
           AND     v_cur_day = '01'               -- if run on the 1st of the month)
           )                              -- will cover from
         v_lowdate  := ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
                         , -1
                         );               -- 1st of last month
         v_highdate := TRUNC (SYSDATE, 'MONTH') - 1;     -- last day of last month
    END IF;
    

    The above code always makes all the previous month, a monthly report. If you decide you want to want to do the month in progress (not the previous month) when a monthly report is run the or after the 25th of the month (as your original code), then use the version below:

    v_cur_day := TO_CHAR (SYSDATE, 'DD');
    
    IF  report_type = 'D'                         -- Daily report
    AND v_cur_day > '01'                         -- (except when run on 1st of the month)
    THEN                                   -- will cover from
    
         v_lowdate  := TRUNC (SYSDATE, 'MONTH');          -- 1st of this month to
         v_highdate := TRUNC (SYSDATE - 1);          -- yesterday.
    ELSIF  (     report_type = 'M'               -- Monthly report
           AND     v_cur_day <= '24'               -- (if run between the 1st and 24th,
    OR     (     report_type = 'D'               -- or Daily report
           AND     v_cur_day = '01'               -- if run on the 1st of the month)
           )                              -- will cover from
         v_lowdate  := ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
                         , -1
                         );               -- 1st of last month to
         v_highdate := TRUNC (SYSDATE, 'MONTH') - 1;     -- last day of last month.
    ELSIF  (     report_type = 'M'               -- Monthly report
           AND     v_cur_day >= '25'               -- (if run on or after the 25th of the month)
           )                              -- will cover from
    THEN
         v_lowdate  := TRUNC (SYSDATE, 'MONTH');          -- 1st of this month to
         v_highdate := LAST_DAY (TRUNC (SYSDATE));     -- last day of this month
    END IF;
    
  • Adding values to insert the query [was: Please help with this code]

    I created a comments section where there is that a single comment here field is the code for the form:

    < form id = "frmComment" name = "frmComment" method = "POST" action = "<?" PHP echo $editFormAction;? > ">"

    < h3 >

    < label for = "namegd" > < / label > comment: < / h3 >

    < p >

    < label for = 'comment2' > < / label >

    < textarea = "comment" id = "comment2' passes name ="60"lines ="10"> < / textarea >

    < /p >

    < p >

    < label for = "submit" >

    < / label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" / >

    < label for = "reset" > < / label >

    < input type = "reset" name = "reset" id = "reset" value = "Clear" / >

    < /p >

    < input type = "hidden" name = "MM_insert" value = "frmComment" / >

    < / make >

    and inclusion in the code applied to the shape is as follows

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

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

    }


    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "frmComment")) {}

    $insertSQL = sprintf ("INSERT INTO comments ('comment',) VALUES (%s)", ")

    GetSQLValueString ($_POST ['comment'], "text"));


    @mysql_select_db ($database_my_connection, $my_connection);

    $Result1 = mysql_query ($insertSQL, $my_connection) or die (mysql_error ());

    }

    But I want the form to insert more than two values to the database one commented_by and the other will be post_id where = commented_by ($_SESSION ['Username']) and post_id = $row_Recordset1 ['id'] can someone please let me know what will be the modified code and there is commented_by is a text field and post_id is an int field.
    Please guys help me thanks in advance

    It is easy to add additional values to the Insert query:

    $insertSQL = sprintf("INSERT INTO comments (`comment`, commented_by, post_id) VALUES (%s, %s, %s)",
             GetSQLValueString($_POST['comment'], "text"),
             GetSQLValueString($_SESSION['Username'], "text"),
             GetSQLValueString($row_recordset1['id'], "int"));
    

    You must ensure that code to recordset1 comes before the insertion query. By default, Dreamweaver recordset place code immediately above the declaration DOCTYPE and under other server behavior. Thus, you must move the code. Otherwise, this insert query does not work.

  • Please, help with this code

    Hello

    I use this line for dynamic create menu. I use XML and then I call the attritbutes in Flash. I want each button to call its own function. It works if I use

    = new curr_item.onRelease; News is the name of the function

    but it does not work if I use

    curr_item.onRelease = this.labelA; labelA is an attribute from XML, its value is a new

    I used the trace and the value is not indefinite.

    If you need more code, please let me know. Thanks for any help you can provide.

    this.labelA? This is probably undefined. Most likely, you will need to use:
    Switch (curr_item.labelA) {}
    case "news":
    curr_item.onRelease = News;

Maybe you are looking for