Why all this code extra?

Hello

To INSERT data db2 uses my code

< cfqueryparam

value =' #UCASE (arguments.myData) # ' cfsqltype ="CF_SQL_CHAR" maxlength ="40">,

However

(#UCASEarguments.myData #)

is just as effective and the debugger shows the final result of code instead of? where it becomes necessary to match the arguments to get the final result.

What, if any, advantage is the provide cfqueryparam tag?

Can someone enlighten me pleasse?

Thank you in advance.

Do you need more information than is already presented in the documentation?

http://help.Adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7F 6f.html

--

Adam

Tags: ColdFusion

Similar Questions

  • Curious to know if all this Code PHP is necessary

    PHP Newbie question:

    The attached code was made with php-msql DW CS3 Server behaviors - recordset pull down of...

    I'm curious to know if all this code is necessary? Some of it seems to make things more difficult to work with... For example:

    1 - Why does the DW decide to take ['xVARx'] form variables and convert them to the $Vars? -Why not just use the GET ['xVARx']?

    2 - Why use sprintf in the $query_test: instead of something more direct as:

    SELECT * directory WHERE firstname LIKE $_GET ['firstname'] % and lastname LIKE $_GET ["lastname"] % - etc...

    Just curious why they chose these methods... Any idea would be appreciated...


    .oO (revdave)

    > PHP Newbie question:
    >
    > This attached code was done with DW CS3 php-msql - Recordset server behaviors
    > pull-down...
    >
    > I'm curious to know whether all this code? Some of it seems to make things
    > difficult to work with... For example:
    >
    > 1 Why does the DW decide to GET ['xVARx'] form variables and convert them to
    > $Vars? -Why not just use the GET ['xVARx']?

    You cannot rely on the existence of $_GET ['xVARx']. You should always test
    with the isset() function if the URL parameter is set, before you can use it or load
    It's in a local variable. If it does not exist, you must initialize
    the variable with a default value. DW code does this, so that you can then
    use safely $xVARx - it contains the value of $_GET ['xVARx']
    or a usable default.

    > 2 - Why use sprintf in the $query_test: instead of something more
    > directly as:
    >
    > SELECT * directory WHERE firstname LIKE $_GET ['firstname'] % and lastname
    > LIKE $_GET ["lastname"] % - etc...

    Such a code is much harder to read and maintain, and more prone to error
    (Look at the quotes, for example). When you want to incorporate several
    variable in a string using sprintf() function is the most flexible way.

    You also missed a bit of detail. DW does not directly use the data
    the values in the string, but call first GetSQLValueString() on them.
    A correct management of the values submitted by users is very important to avoid
    Injection of SQL code. Your example above does not prevent this kind of attack.

    HTH
    Micha

  • Why, oh why, all this Center so well in IE, but not Safari or Firefox?

    Hello, I'm pulling out my hair, please help before go me bald. I have a striped background and a div centered at the top containing a white box (#DropShadow). Everything worked well in IE, Safari and FF. Now, I've added my menu which is a div with a table and images inside, it stops being centered in Safari and FF, but works perfectly in IE! Can anyone help? Pasting all the code below as have no idea what is the cause! Thank you.

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > sorbet Studios < /title >

    < style type = "text/css" >

    {body

    background-image: url (.. / images/Background.gif);

    background-repeat: repeat;

    position: absolute;

    z-index: 2;

    left: 30px;

    top: 10px;

    }

    {#DropShadow}

    background-image: url (.. / images/WhiteBackground.png);

    background-repeat: no-repeat;

    background-position: center bottom;

    margin: auto;

    height: 630px;

    width: 800px;

    position: relative;

    top: 0px;

    z-index: 1;

    }

    {#Menu}

    position: relative;

    height: 490px;

    width: 270px;

    left: 35px;.

    top: 28px;

    background-color: #FC0;

    margin-top: 0px;

    margin-right: 0px;

    margin-bottom: 0px;

    margin-left: 0px;

    }

    < / style >

    < script type = "text/javascript" >

    function MM_preloadImages() {//v3.0

    var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

    var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    function MM_swapImgRestore() //v3.0 {}

    var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;

    }

    function MM_findObj (n, d) {//v4.01

    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

    If (! x & & d.getElementById) x = d.getElementById (n); Return x;

    }

    function MM_swapImage() {//v3.0

    var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).

    If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}

    }

    < /script >

    < / head >

    < onload of the body = MM_preloadImages('..) ' Accueil/boutons/on.gif ','... '. Galerie/boutons/on.gif ','... buttons / / all on.gif ','... / buttons/touch on.gif') ">"

    < div id = "Shadow" >

    < div id = 'Menu' >

    < table width = "270" border = "0" cellpadding = "0" cellspacing = "0" >

    < b >

    "< td width ="160"height ="287"> < img src ="... Accueil/boutons/off.gif' alt = 'Home' name = "HomeOff" width = "160" height = '286' id = 'HomeOff' onmouseover = "MM_swapImage ('HomeOff ',", '..) " ' Accueil/boutons/on.gif',1)"MM_swapImgRestore" / > < table >

    "< td width ="110"rowspan ="2"> < img src ="... Galerie/boutons/off.gif' alt = name of the 'Gallery' = "GalleryOff" width = "110" height = "432" align = "absmiddle' id = 'GalleryOff' onmouseover ="MM_swapImage ('GalleryOff ',", '...)" ' Galerie/boutons/on.gif',1)"MM_swapImgRestore" / > < table >

    < /tr >

    < b >

    "" < height td = "146" > < img src = "... / buttons / on off.gif ' alt = 'About' name ="AboutOff"width ="160"height ="146"align ="absmiddle' id = 'AboutOff' onmouseover = "MM_swapImage ('AboutOff ',", '... / buttons / on on.gif', 1) ' MM_swapImgRestore"/ > < table >"

    < /tr >

    < b >

    "" < td height = "58" colspan = "2" > < img src = "... / buttons/touch off.gif ' alt = 'Contact' name ="ContactOff"width ="270"height ="58"align ="absmiddle' id = 'ContactOff' onmouseover = "MM_swapImage ('ContactOff ',", '..) " (/ boutons/Contact on.gif',1)' MM_swapImgRestore "/ > < table >

    < /tr >

    < /table >

    < / div >

    < / div >

    < / body >

    < / html >

    Screen shot 2011-06-05 at 13.39.53.png

    To add a little more to what Snakeyze said, you need not positioning at all.  Positioning CSS that is not specified or static default is all what it takes to 98% page layouts.

    To Center your page, you need 3 things:

    (1) a statement of type of valid document on the first line of your markup - DW performs this task for you when you create a new page,

    (2) with a width of container in pixels, ems or %.

    (3) a margin-left and margin to the right of "auto" (the default value of the browser).

    {body

    Width: 1000px; / * adjust to the REQ'd * /.

    margin: 0 auto; / * with width, this Centers page * /.

    Background: url (.. / images/Background.gif);

    }

    {#DropShadow}

    Background: url (.. / images/WhiteBackground.png) Center low no-repeat;

    min-height: 630px; / * height limit the height of the container, if necessary using min-height * /.

    Width: 800px;

    }

    {#Menu}

    margin: 0;

    padding: 0;

    Width: 270px;

    background-color: #FC0;

    }

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Inserting a SWF... should I really all this code?

    Hello

    as you know, Dreamweaver adds tons of code when you insert a Flash object.

    I was wondering, being a phenomenon of optimization, how much it you actually need, especially if you take the Internet Explorer out of the picture.

    For example, how about this:

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-555553540000" 
    WIDTH="550" HEIGHT="400" id="Example" ALIGN="">
        <PARAM NAME=movie VALUE="Example.swf"> 
        <PARAM NAME=quality VALUE=high> 
        <PARAM NAME=bgcolor VALUE=#FFFFFF>
    
        <EMBED src="Example.swf" quality=high 
        bgcolor=#FFFFFF  WIDTH="550" HEIGHT="400" 
        NAME="Example" ALIGN="" TYPE="application/x-shockwave-flash" 
        PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
        </EMBED>
    </OBJECT>
    

    Looking forward to your comments!

    Try this online tool

    http://validifier.com/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

  • Why all this very slow loading on my computer lately?

    When I click on a program to open it, it is very slow to open an it.when I am online, sometimes it just freezes

    Hi dls4u2c,

    1. Did you the latest changes on the computer?
    2. You receive an error message on the computer?
    3. You have security software installed on the computer?
    4. When was the last time it was working fine?

    Method 1

    Check if the problem persists in the safe mode and after back with the results.

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    Method 2

    If the problem does not persist in safe mode, then it is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

    How to make a computer faster: 6 ways to speed up your PC

    http://www.Microsoft.com/atwork/maintenance/speed.aspx

  • Why all this moderation?

    Everyone finds practically everything that they post here is being moderated? The big question for me is why? It used to be if you have included a couple of external links, it came down to one, even a YouTube video seems to trigger. If you mention a product that seems to trigger sometimes, but other times not. If moderation is done in a minute or two of fine, but I have something totally innocuous posted 10 minutes ago and it has not yet been approved. It's probably Jive replay upward, but it gets irritating after a while

    Terri

    I asked the admins to add you to a group of exemption. Promise to behave

  • Why all the bad reviews of el capitan?

    Why all this negative opinions on El Capitan?

    In General, you should always pass to the last possible system like you meet the specs for, as long as you do not have "must have" applications that do not meet specifications. The idea that the updates/updates cause problems is probably derived from discussions that see you here. ASC is like an emergency room for people to have problems, especially the sick, those who come here. Hundreds of thousands of people pass without difficulty, never here and go merrily on their way. In addition to the improved features, updates/improvements important security fixes.

  • Why this code give me duplicate data

    HII, all the
    Why this code give me duplicate data
    SELECT (G.NAME_1 ||' '||G.NAME_2||' '||G.NAME_3||' '||G.NAME_4) AS NAME,
                  R.RES_NUM
    FROM    GUST G , RESERVATION R,ROOM_DETAILS S,ROOMS RR
    WHERE   G.RES_NUM = R.RES_NUM
    AND     R.RES_NUM = S.RES_NUM
    AND     RR.OCCUPIED = 'Y'
    RES_NUM
    --------
    1282
    1282
    1282
    1282
    1280
    1280
    1280
    1280
    1281
    1281
    1281
    1281
    1310
    1310
    1310
    1310
    
    16 rows selected

    Try this:

    SELECT DISTINCT (G.NAME_1 ||' '||G.NAME_2||' '||G.NAME_3||' '||G.NAME_4) AS NAME,
                  R.RES_NUM
    FROM    GUST G , RESERVATION R,ROOM_DETAILS S,ROOMS RR
    WHERE   G.RES_NUM = R.RES_NUM
    AND       R.RES_NUM = S.RES_NUM
    AND       RR.OCCUPIED = 'Y'
    
  • Why all numbers use symbol 'L' in the following code?

    Why all numbers use symbol 'L' in the following code?
    Thank you
    public static final long MILLIS_IN_YEAR = 1000L * 60L * 60L * 24L * 365L

    qkc wrote:
    Why all numbers use symbol 'L' in the following code?
    Thank you

    public static final long MILLIS_IN_YEAR = 1000L * 60L * 60L * 24L * 365L
    

    Java language rules: an L after a literal integer in Java indicates that this constant should be kept as a long (64 bit signed) instead of int (32 bits signed).

    If you have not used to that, all the numbers on the line would be treated as integers (ints) (32 bit) and multiplier with an int int translates an int even if you want to store in a long.

    Since int cannot fully represent the full product (about 31.5 billion) as it is greater than Integer.MAX_VALUE (2 billion), so if you have not used the long as operands for multiplication, you finally get an incorrect value in MILLIS_IN_YEAR because the last multiplication would cause an overrun.

    Best regards

    Robert

  • Have been left in charge all night I get the message "after reboot requires the password" question is why is this automatic restart, and is this normal

    Have been left in charge all night I get the message "after reboot requires the password" question is why is this automatic restart, and is this normal

    Occasionally, it may restart because something was wrong. It is not a problem unless this happens frequently.

  • failure of the SIM, why I this message all the time?

    failure of the SIM, why I this message all the time?

    This means that your SIM card is defective or otherwise expired

    Can you make and receive calls and texts?

    If so - go out the SIM card - wait about 45 seconds and re insert it back

    If not - contact your carrier for a new SIM card

    Remove or change the SIM card in your iPhone or iPad - Apple Support

  • Attempt at analysis extra long doc. all this does not. Is there something I can do?

    HP Officejet Pro 7580

    Windows XP

    Attempt at analysis extra long doc. all this does not. Is there something I can do?

    That does not make a big difference.

    The page is actually 14 inches or longer?  8.5x14 is legal paper, therefore affecting the software to analyze the legal size and then swipe the ADF should work.

  • This code cannot possibly. Why is it a failure?

    LV 2010 (Yes 2010), Win Vista.

    I have a SCREEN UPDATE event, occurring at 2 Hz.

    The event features an array of values, one for each channel.

    Four CHANNEL SELECTORS lead an INDEX TABLE operation.

    The four selected channels are shown separately on digital indicators and then combined with a waveform graph.

    The small subVIs are there to produce a NaN value to draw if the channel selector is - 1 (none).

    Currently, they are modified to generate a value for "123.0", for debugging purposes.

    AID indicates that the TABLE INDEX will produce a default value of 0 if the input index is outside the bounds of the array.

    However, in certain circumstances (see JING http://screencast.com/t/0kO0GDhlo0E), indicators of the "VALUE of the GRAPH' fail to update.

    In this video, I put the indicators to the values of 1, 2, 3, 4, before to start the program.

    I DO NOT set the DEFAULT value, simply enter the numbers in the lights on the Panel.

    The two selected channels are apparently normally updated.  The other two, who remain at ZERO (-1) do not update.

    I expect to see a zero, or SOMETHING, but the '3' and '4' never change.

    This code is called, as evidenced in the table of progress, but the values do not change.

    If I change the channel on a direct channel, then back to ZERO, it returns 0.  Which is expected.

    But why it isn't updated first?

    If I exchange the channel around selectors, the problem swaps with her. Any selector set to NONE has the corresponding indicator unchanged compared to the starting value.

    ON THE CODE:

    It is a CONCAVE VI, inserted in a secondary SCHOOL.

    Here is the embed code:

    The idea is that each control on the page is a secondary, each will receive an instance of a VI.

    For each school, I open a new ref becomes this VI (he put to be reentrant) and insert this ref in the secondary.

    I put a few values of control and launch it running.

    HIGHLIGHTS:

    1... If I change the OPTIONS = 8 options = 0 in the above, the problem goes away. Everything works as expected.

    2... N = 1 in the above, is simply to limit the number of instances, for debugging purposes.

    3... I get no error at any time.

    4... I tried with and without wire at the entrance to REFNUM REFERENCE OPEN VI VI TYPE SPECIFIER.  No change.

    A research on this topic raises some issues of 2008 with LV 8.0, and a suggestion there to serve the point inserted into a LIVING had no effect here.

    So, why not the seeing if the index is - 1, initially?  It's as if the code is not there.

    And why making it not reentrant fixed it?

    (I think I got this way so I can have multiple instances).


  • When trying to update, I get this code 0x8024400A. I tried all the recommended fixes.

    When trying to update, I get this code 0x8024400A.  I tried all the recommended fixes.

    Hello

    (1) what is the description of the update that does not happen?

    (2) what are the troubleshooting steps you tried to solve the problem?

    I suggest you try the steps from the link below and check if it helps.

    http://support.Microsoft.com/kb/836941

    Hope this information is useful.

  • All using windows movie maker, I added audio, but I can't hear the music while playing the video... Why is this?

    All using windows movie maker, I added audio, but I can't hear the music while playing the video... Why is this?

    Hello

    1. What is the format of the video file that you use in Movie Maker?

    2. do you receive error messages when you try to play the video?

    Some audio and video file formats are not supported in Windows Movie Maker and cannot be imported. However, if you have a video or audio file that is not taken care of, you can use a non-Microsoft video editing software to convert the file into a format supported by Windows Movie Maker, and then import the video file or an audio resulting in Windows Movie Maker.

    You can use your favorite search engine and download third-party video editing software to convert the file.

    Note: The use of third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    For more information, you can also consult the following articles:

    Problems with importing files into Windows Movie Maker

    Import video, photos and audio on Windows Movie Maker

    Hope this information is useful.

Maybe you are looking for

  • Which of the 3 Shockwave on this computer I'm supposed to be activated?

    Shockwave Flash 13.0.0.214, Shockwave for Director 12.1.0.150 and Shockwave for Director 12.0.9.149 are all installed and enabled on my computer. Firefox is so slow and I wonder if all these plugins activated with is the problem. I have changed sever

  • Qosmio G50-129 PQG55E - 64-Bit Windows 7 updated - update the BIOS?

    Hello I have a Qosmio G50 that I've upgraded to Windows 7 64 bit. My BIOS is unupdated for 6 months when I bought the machine. I went to update the BIOS, just to keep things updated, so I went through the pilot Online Assistant: http://EU.computers.T

  • DSC: Connection to the 3rd party OPC Server

    I had this work with LabVIEW 2011 and Win XP...  After update I can't make it work...   Now with LabVIEW 2012 and Win 7, the server is now upgraded to Win 7 system. I'm reading a commercial server OPC of Yokogawa variables.  I can connect to the serv

  • lost code vista

    can I get another activaition code since I threw the computer case that the sticker was on my vista basic

  • Vista and Windows 7 wont display icons and pictures for folders on XP

    I am trying to create a usb key that lead when opened displays a background image and custom icons from the file. Everything works fine on XP, which is the os that I used to create the layout. works great on all the other xp I can get my hand on also