This code snippet works partially...

I have this little snippet that is supposed to cut the search and return a message who found him too many records to continue and Please refine your search:

<? PHP if ($totalRows_search = ' > 15') echo "more than 15 cases were found;" more information, please indicate in the search fields to reduce this list '; die?; >

It works fine when the search finds more than 15, but it also works when there is not that many possible records to find in the search. It appears on every search.   What I'm doing wrong with that?

Thank you.

Brian

It should be this:

 if ($totalRows_search > 15)

Tags: Dreamweaver

Similar Questions

  • 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...

  • How this code would work?

    Hello

    I have this code in a form and it works correctly, I do not know how? because I tried after you modify, delete the quotation marks and parentheses, it does not.

    SET_BLOCK_PROPERTY (NVL ' of the 'TTO_TICKETTRAVELORDERDETAILS, DEFAULT_WHERE,' (STATUS, "$$ # & & & &") = NVL ("' |: CONTROL.)) STATUS | " (', NVL (STATUS, "$$ # & & & &"))

    AND IS_TOUR = "N"

    AND EXISTS (SELECT "X"

    OF TTO_ORDERDETAILSROUTES T

    WHERE T.ORDERDETAILID = TTO_TICKETTRAVELORDERDETAILS. ORDERDETAILID

    AND NVL(CARRIER,''$$##'') = NVL ("' |: CONTROL.) CARRIER: "', NVL(CARRIER,''$$##''))

    AND NVL (CLASS, "$$ & &") = NVL ("' |: CONTROL.) CLASS | " ((', NVL (CLASS, "$$ & &")))

    AND EXISTS (SELECT "X"

    OF TTO_TICKETTRAVELORDERHEADER H

    WHERE H.ORDERID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND STATUS = "Post")

    AND EXISTS (SELECT "X"

    OF TTO_TICKETTRAVELORDERHEADER H

    WHERE H.ORDERID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND TO_CHAR(ORDERDATE,''DD-MM-YYYY'') BETWEEN NVL ("' |: CONTROL.) FROM_DATE | " (', ORDERDATE) AND NVL ("' |: CONTROL.) TO_DATE | " (', ORDERDATE)

    AND NVL(H.CUSTOMER_NO,''$$##@@@'') = NVL ("' |: CONTROL.) CUSTOMER_NO: "', NVL(H.CUSTOMER_NO,''$$##@@@'')))');

    After editing it and try in the pl/sql developer, he could not identify the TTO_TICKETTRAVELORDERDETAILS. ORDERID

    and TTO_TICKETTRAVELORDERDETAILS. ORDERDETAILID

    in the condition "Exists".

    SELECT

    t.*,

    t.ROWID

    Of

    TTO_TICKETTRAVELORDERDETAILS t

    WHERE

    NVL (STATUS,' $$ # & & & &') = NVL (", NVL (STATUS,' $$ # & & & &'))

    AND IS_TOUR = N

    AND THERE ARE

    (

    SELECT

    « X »

    Of

    TTO_ORDERDETAILSROUTES T

    WHERE

    T.ORDERDETAILID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND NVL(CARRIER,'$$##') = NVL (", NVL(CARRIER,'$$##'))

    AND NVL (CLASS,' $$ & &') = NVL (", NVL (CLASS,' $$ & &'))

    )

    AND THERE ARE

    (

    SELECT

    « X »

    Of

    TTO_TICKETTRAVELORDERHEADER H

    WHERE

    H.ORDERID = TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND STATE = 'Post'

    )

    AND THERE ARE

    (

    SELECT

    « X »

    Of

    TTO_TICKETTRAVELORDERHEADER H

    WHERE

    H.ORDERID = T.TTO_TICKETTRAVELORDERDETAILS. ORDERID

    AND ORDERDATE BETWEEN NVL('',ORDERDATE) AND NVL('',ORDERDATE)

    AND NVL(H.CUSTOMER_NO,'$$##@@@') = NVL (", NVL(H.CUSTOMER_NO,'$$##@@@')));

    Why?

    If you do not give the table in the outer query an alias then you reference with the full name.

    3. ??

  • Trying to get this code to work

    So, I'm doing of smoke and I love the looks in a way I found online. However, I guess it was made in an earlier version and a part of the code is no longer supported with the version that I use with CS3 is.

    I hope this is the right forum for this.  If this isn't the case, please redirect me.  Any help getting this thing woring would be much appreciated.  The code is from this site:

    http://www.pixelhivedesign.com/tutorials/realistic+Flash+smoke+effect/

    He creates a music video called aPuff and gives then the movieclip an aPuff identifier as well.  It seems that identifiers are no longer used in CS3.

    // ------------------------------------------------

    Realistic smoke effect - www.pixelhivedesign.com

    // ------------------------------------------------

    fadeSpeed = 1;    / / Smoke fade speed.

    floatUpSpeed = 2; / / Smoke float speed.

    Each base come settle a cloud of smoke.

    ce . onEnterFrame = function() { }

    / / Get the next available depth.

    d = ce. getNextHighestDepth ();

    / / Join a cloud of smoke.

    aPuff = attachMovie()"aPuff","aPuff"+ d, d();

    / / Set the initial scale to 10%.

    aPuff. _xscale = aPuff. _yscale = 10;

    / / Put puff where is the mouse. (Add little random)

    aPuff. _x = Math. randomly () * 5;

    / / Makes random animation departure for realism.

    aPuff. gotoAndPlay (Math. tour (Math. randomly ()*20));

    / / Smoke will animate every frame.

    aPuff. onEnterFrame = function() { }

    / / Scale cigarette smoke

    this. _xscale is this. _yscale += fadeSpeed;

    / / Stale smoke.

    this. _alpha = fadeSpeed;

    / / Smoke floating upward

    this. FLF = floatUpSpeed;

    / / When the smoke is 100% scale, remove him

    if (this. ( _xscale > = 100) { }

    this. removeMovieClip ();

    }

    }

    }

    When I run the present in CS3, I get a list of errors. I am super new ActionScript.

    Thanks again.

    Wrong forum.  In other words not code AS2, AS3 (CS3 can work with).  Since you say you found a lot of mistakes, you probably have settings in the publication file configured for AS3.  If you change to AS2 code might work.

  • Why can't the 'Stop' javascript code snippet work over different periods?

    Hi all

    I am a newbie to Adobe animate and I have absolutely no background in writing code or anything, and I need your help. The solution is probably obvious to experts like you all, but not for beginners me.
    I'm trying to create an interactive infographic in Adobe animate CC using the HTML Canvas format. I want to create interactive buttons that will reveal more information when clicked. I have no difficulty to create buttons and I gave them instance names and all that, but I can only do the first work. The rest of them does not work although I made sure to correct the frame number. What I am doing wrong?

    Happy that you guessed it work.

    It's one of the reasons why I prefer picture labels. Alternatively, you can give them to your content more intuitive names, so it is easier to stay organized, and if you change the length of your timeline or rearrange the images, you will not have to change the frame numbers in your code.

  • This code snippet is safe?

    I posted this on the article of the General database and someone suggested that this is the right forum.


    May I know if it is a safe way of code or will it be a candidate for sql injection? If so, can someone tell me how to do it is safe?

    declare
    str1 VARCHAR2 (4096);
    VARCHAR2 (4096) str2;
    Str VARCHAR2 (4096);
    l_undo VARCHAR2 (512): = NULL;
    P_SERVICE_NAME VARCHAR2 (20): = NULL;
    Start
    P_SERVICE_NAME: = ' TEST. WORLD ';
    str1: = "SELECT VALUE FROM V$ PARAMETER ' |' @'. P_SERVICE_NAME;
    str2: = q "[where NAME = 'undo_management']";

    Str: = str1. str2;

    Run immediately str in l_undo;
    exception
    while others then
    dbms_output.put_line (SQLERRM);
    end;

    Thank you


    Sarayu KS

    It depends...

    The code you have posted is an anonymous block. It accepts no parameters, so there is no way for a caller to inject code.

    Assuming that what you actually have is a procedure where P_SERVICE_NAME is an input parameter, and not a local variable, then the procedure would be subject to code SQL injection. At the very least, you do not want to use the package DBMS_ASSERT to ensure that the service name that is passed is an identifier valid, i.e.

    str1 := ' SELECT VALUE FROM V$PARAMETER'||'@'|| DBMS_ASSERT.QUALIFIED_SQL_NAME( P_SERVICE_NAME );
    

    Since you know that P_SERVICE_NAME must be the name of a database link, I would go a little further and check that the setting is in fact a valid database connection, i.e.

    SELECT COUNT(*)
      INTO l_cnt
      FROM dba_db_links
     WHERE db_link = p_service_name;
    
    IF( l_cnt = 0 )
    THEN
      RAISE_APPLICATION_ERROR( -20001, p_service_name || ' is not the name of an existing database link.' );
    END IF;
    

    Justin

  • code snippet-&gt; do not work if LV began as an administrator

    The topic contains everything. Pass a code snippet in the code of a VI window does not work if LV began as an administrator.

    Is this a bug or a feature?

    It is a Windows security. A lower priority process (Windows desktop) is not allowed to send messages (here to drag and drop messages) to a high process, because that can be used to inject malicious code into a high process. LabVIEW could theoretically call ChangeWindowMessageFilterEx() on all windows diagram to allow drag and drop of messages sent from the lower priority process, but this function must be called on all windows and for all messages that need to be let go and get a real problem and of course open up your process to malicious attacks.

  • NVIDIA GeForce GT 220 M this device cannot work properly until you restart your computer. (Code 14)

    NVIDIA GeForce GT 220M
    This device cannot work properly until you restart your computer. (Code 14)

    Click on reboot to restart your computer

    The restart does not solve their same message reappears.

    Have you tried reinstalling the drivers from here? (they can be more recent)
    http://www.GeForce.com/hardware/desktop-GPUs/GeForce-gt-220/

    I hope this helps.

  • Could some modify this code works for vertical scrolling?

    Hello

    I am a know nothing.

    Read this discussion... http://forums.Adobe.com/message/5501696 .

    UME YOSHIOKA provided the code to control the direction of reading the direction of scrolling animation.

    It is for the horizontal scrollbar only.

    His example of it in action... http://Ciruelo.jp/js/edge/WS/windowScroll.html

    Very smart.

    Could some modify this code works for vertical scrolling?

    I know nothing and I don't know if I'm too ask.

    My attempts have failed.

    The code is

    var totalFrame = 6250;
    var stageWidth = 10000;
    var maxScrollLeft = stageWidth - $(window).width();
    var baseFrame = 250;  //for adjustment

    //control the main timeline pos by $(window).scrollLeft() pos.
    $(window).scroll(function (e) {
      var scrollLeft = $(window).scrollLeft();              // get scroll pos
      var n = totalFrame*scrollLeft/maxScrollLeft|0;        // calc frame index
      sym.stop(n+baseFrame*(1-scrollLeft/maxScrollLeft)|0); // adjustment & move frame
    });

    Thank you

    Hi, epple2013.

    in the case of ths.

    You can use ' $(window) .scroll (func) ' and ' $(window) .scrollTop () ".". "

    $(window).scroll(function (e) {
      // get scrollTop
      var scrollTop = $(window).scrollTop();
    
      // control your timeline by value of scrollTop
      if(scrollTop>100){
        //sym.play(scrollTop); etc...;
      }
    }
    
    

    Here is the sample & source:http://ciruelo.jp/js/edge/vs/vertical.html

    Best regards.

    UME.

  • Code snippet of the game does not work?

    I use the following code snippet:

    but this error Line 6 1061: call to a method maybe not defined play through a reference with static type flash.media:Video.

    img1.addEventListener (MouseEvent.CLICK, fl_ClickToPlayVideo);

    function fl_ClickToPlayVideo(event:MouseEvent):void

    {

    video_1.play (); the error refers to this line here

    }

    I add something?

    If the designer is the movieclip you want to listen to, use:

    Designer.Play ();

    Instead of

    video_1.play ();

  • Help, please! Why this code work in 6i form and does not work in forms 11g

    I tried to fix this thing for weeks and for some reason that I can't understand how to operate.

    Here are the error codes I get:

    FRM-41219: can not find the report: invalid ID (this pop on the screen I then click on the ok button the next show at the bottom of the screen)

    FRM-40738: Argument 1 of builtin RUN_REPORT_OBJECT cannot be null

    Basically, this code is supposed to call a report that puts another screen pop up and display the report.

    Here is the code behind the button on the form "File Print".

    :OVERALL. THE_NUMBER: =: REQUEST_SEQUENCE;

    IF : REQUEST_AMOUNT<100000 THEN : TEXT_ITEM83: =: request_amount;

    ELSIF : REQUEST_AMOUNT> THEN 1000000 : TEXT_ITEM83: =1;   / * I think the ELSIF should be replaced with ELSE IF don't know * /.

    END IF;

    : TEXT_ITEM74: =:GLOBAL. THE_NUMBER;

    THE_REP;

    Here is the code that is behind the box of quere.

    Start

    : global .qry_rep_val: =: quy_rep;

    : display_item78: =: global .qry_rep_val;

    If: global .qry_rep_val = '3' then null;

    elsif: global .qry_rep_val = 1 then

    run_vba_rep1;

    elsif: global .qry_rep_val = 2 then

    run_report_for_last_query;

    elsif: global.qry_rep_val = 4 then / * Yes, there is an extra space between the two, the 'val' and '='. Should I delete TI * /.

    Call the form ('/ export/home/oracle/Middleware/Oracle_FRHome1/forms/vba_tda_qry ', HIDE, NO_REPLACE, QUERY_ONLY);

    end if;

    : qry_rep: = 3;

    end;

    I guess that the problem is in the run_report_for_last_query procedure. There will be something like run_report_object. Could you post this code?

  • Code snippets in JDeveloper 12.1.3 endangered

    Whenever I have create a personal code snippet, it is not saved between sessions of JDeveloper. This work is designed? If so, is there a way to have the excerpts recorded permanently? I tried to find a framework to persist saved snippets between sessions, but couldn't find anything.

    Steps to reproduce:

    (1) open the component palette and expand the Code snippets section.

    (2) open a file containing code in the editor and make slide a few lines of code to the box under the heading of Code snippets.

    (3) in the window new Code snippet that appears, enter a name, Image, and verify that the code you want to save this what a snippet is displayed in the section of Code. Press OK to close the window.

    (4) check your registered snippet appears under the heading of Code snippets.

    (5) output JDeveloper.

    (6) reopen JDeveloper.

    (7) open the component palette and expand the Code snippets section. The extract of saved disappeared.

    You must file an SR with this, or make an entry in the tool that you use internally for bug tracking.

    Timo

  • Code snippets don't appears in the html Robohelp 10 files

    Hello

    I'm trying to insert an excerpt (I tried adding new and using existing ones) in a subject.

    The code snippet displays in the Editor pane and also in the output pdf control and in the subject preview pane.

    However when I opened the HTML directly from windows Explorer, the code snippet does not appear. One of my outings use these html files and I'm eager to make the most of the functionality of the code snippet.

    Any tips?

    Thank you

    Caroline

    Hello

    When you insert a snippet, which you're really insert is a code in the HTML code that looks like this:

    This code will have to be dealt with during the build process to insert the actual information extracted.

    RoboHelp is not similar to other editors HTML in that you simply edit can be used immediately. Working with RoboHelp projects is similar to the use of ingredients to prepare a dish. You will need to cook the dough biscuits to have cookies!

    See you soon... Rick

  • How to optimize the performance of this code?

    I have two clips on a flash project. One of them is fixed and the other can be moved with the arrow keys of the keyboard. The two clips have irregular shapes, so HitTestObject and HitTestPoint does not work very well. I have a function that detects the collision of two clips using bitmap. I wanted to update the position of the Movie clip mobile so I put the function of collision detection under the ENTER_FRAME event listener code. It works fine, but when I add many fixed film clips (about 10 clips fixed in an image), the game (.swf file) becomes slower and slows down the performance of the PC. I thought that my collision detection function has a negative effect on the performance of the PC, so I used the class on this page: https://forums.adobe.com/thread/873737
    but the same thing happens.

    You told me how to do to speed up execution of my codes?

    Here's the part of my code:

    stage.addEventListener (Event.ENTER_FRAME, myOnEnterFrame);

    function myOnEnterFrame(event:Event):void

    {

    If (doThisFn) / / doThisFn is a variable to allow or prevent the kind of mobile film clip moved with arrow keys

    {

    If (left & &! right) {}

    Player.x = speed;

    Player.rotation = player.rotation - speed;

    }

    If (right & &! left) {}

    Player.x += speed;

    Player.rotation = player.rotation + speed;

    }

    If (up & &! down) {}

    Player.y = speed;

    }

    If (down & &! up) {}

    Player.y += speed;

    }

    The clips of film sets are wall1, wall2, wall3, wall4,... and so on
    the following code checks to see how many walls exist on each image and pushes them in table wallA

    for (var i: int = 0; i < 1000; i ++) / / you can put up to 1000 object of wall in the table wallA

    {

    If (this ['wall' + i]) / / if the wall object exists, push it into the table wallA

    {

    wallA.push (this, ['wall' + i]);

    }

    }

    for (i = 0; i < wallA.length; i ++)

    {

    If ( h.hitF (player, wallA [i]) | gameOverTest) / / this code checks whether or not the player (the mobile clip) hit the walls

    {

    trace ("second try");

    gameOver.visible = true;

    doThisFn = false;

    }

    }

    I think the following codes are easy to turn and run. I think that the performance problem is due to previous codes.


    If (player.hitTestObject (door))

    {

    Win.Visible = true;

    doThisFn = false;

    }

    If (key) / / if there is a key on chassis

    {

    If (player.hitTestObject (key))

    {

    Key.Visible = false;

    switch (currentFrame)

    {

    case 4:

    wallA [0] .visible = false;

    .x wallA [0] = 50000;

    break;

    case 5:

    wall14. Play();

    wall8.x = 430;

    break;

    }

    }

    }

    }

    }

    It's a simple question that doesn't usually have a simple answer.

    Here is an excerpt of a book (Flash game development: in a Social, Mobile and 3D world) I wrote.

    Optimization techniques

    Unfortunately, I don't know any way completely satisfactory to organize this information. In what follows, I discuss memory management first with sub-themes listed in alphabetical order. Then I discuss the management of CPU/GPU with subheadings listed in alphabetical order.

    This may sound logical, but at least, there are two problems with this organization.

    1. I don't think it's the most useful way to organize this information.

    2. memory management affects the CPU/GPU use, so that everything in the section of memory management can also be listed in the section CPU/GPU.

    In any case, I'll also list information in two other ways, from the easiest to the most difficult to implement and more for much less.

    Two of these later inscriptions are subjective and dependent on experience developer and capabilities, as well as environmental test and the test situation. I very much doubt there would be a consensus on the order of these lists.  However, I think that they are still valid.

    Easier to the more difficult to implement

    1. do not use the filters.

    2. always use the reverse for loops and avoid loops and avoid while loops.

    3. explicitly stop timers for their loan for gc (garbage collection).

    4. use the weak event listeners and remove headphones.

    5. strictly type variable when possible.

    6. explicitly disable interactivity mouse when interactivity smile not necessary.

    7. replace dispatchEvents with callback functions whenever possible.

    8 it would be gc stop sounds for the sounds and SoundChannels.

    9. use the DisplayObject most basic need.

    10. always use cacheAsBitmap and cacheAsBitmapMatrix with air applications (i.e., mobile).

    11. reuse of objects when possible.

    12 Event.ENTER_FRAME loops: use different listeners and different listener functions applied to DisplayObjects as little as possible.

    13. the pool instead of creating objects and gc objects ' ing.

    14. use partial blitting.

    15. use step blitting.

    16 use Stage3D

    Biggest advantage less

    1. Use the blitting Stadium (if there is enough memory system).
    2. Use Stage3D.
    3. Use partial blitting.
    4. Use cacheAsBitmap and cacheAsBitmapMatrix with mobile devices.
    5. Disable explicitly interactivity mouse when interactivity smile not necessary.
    6. Do not use filters.
    7. Use the most basic necessary DisplayObject.
    8. Reuse objects whenever possible.
    9. Event.ENTER_FRAME loops: use different listeners and different listener functions applied to DisplayObjects as little as possible.
    10. Use reverse for loops and avoid the do loops and while loops.
    11. The pool instead of creating objects and gc'ing.
    12. Strictly, type variable when possible.
    13. Use weak event listeners and remove headphones.
    14. Replace dispatchEvents by the callback functions whenever possible.
    15. Explicitly stop timers on loan for the gc.

    16 stop sounds for the sounds and SoundChannels be gc would be.

  • New to AS3, code extract works not

    Hello.  I am new to AS3.  I'm moving on AS3 to AS2, so that I can make a video gallery app.

    I have been using the code snippets in Flash and the buttons work in a way, but he continues to play the same movie over and over again, which is the first movie.  Can someone help me?  I want people to click on a button and do play a different video associated with this video.  In reality, however, by clicking on this button just the user leads to a different image that has this video on it.  Here's the script:

    / * Stop to this image
    The Flash timeline will be stop/pause on the frame where you insert this code.
    Can also be used to stop/pause the chronology of the movieclips.
    */

    Stop();

    / * Click to frame and play
    By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and continues playback of this image.
    Can be used in the main timeline, or on timelines of film clip.

    Directions for use:
    1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.
    */

    PipeStr_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);

    function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void
    {
    gotoAndPlay (1);
    }

    / * Click to frame and play
    By clicking on the instance for the specified symbol moves the playback cursor to the frame specified in the timeline panel and continues playback of this image.
    Can be used in the main timeline, or on timelines of film clip.

    Directions for use:
    1. replace the number 5 in the code below with the image number you want the playback head to when the user clicks the symbol instance.
    */

    SealInts_btn.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);

    function fl_ClickToGoToAndPlayFromFrame_2(event:MouseEvent):void
    {
    gotoAndPlay (7);
    }

    Have you placed a stop() somewhere during or after the 7 framework so that the timeline does not loop back to frame 1?

Maybe you are looking for