INsert Into does not work in the query

I wrote this part of my web site that allows you to insert records in the DB. Right now it does not work properly. I get no error, but I do not also get a new record. Can you see why this is happening? I write two pages of code, the edit page and the action page. I can't understand what Miss me.

Change page:

< name = "cfparam url.id' type = 'integer' default = '0' >"
< name cfparam = "variables. ProjectID' type = "integer" default = "#url.id #" >
< name = "cfparam variables.proj_name" default = "" > "
< name cfparam = "variables. Default Description"=" ">
< name cfparam = "variables. Default CategoryID"=" ">
< name = "cfparam variables.cat_name" default = "" > "
< cfif url.id GT 0 >
"< name cfquery ="projMan"datasource =" "#sitedatasource #" username = "#siteUserID #" password = "#sitePassword #" >
SELECT c.CategoryID,
c.Name AS cat_name,
p.ProjectID,
p.Name AS proj_name,
p.Description
CATEGORIES AS c
INNER JOIN project GOT p ON c.CategoryID = p.CategoryID
WHERE p.ProjectID = < cfqueryparam value = "" #URL.ID # "cfsqltype ="cf_sql_integer">"
AND c.CategoryID = p.CategoryID
< / cfquery >
< cfif projMan.RecordCount EQ 1 >
< cfset variables. ProjectID = projMan.ProjectID >
< cfset variables.proj_name = projMan.proj_name >
< cfset variables. Description = projMan.Description >
< cfset variables.cat_name = projMan.cat_name >
< cfset variables. CategoryID = projMan.CategoryID >
< / cfif >
< / cfif >
< name cfquery = 'catList' datasource = "" #sitedatasource # ""
username = "" #siteUserID # "password =" #sitePassword #">"
SELECT DISTINCT categories. CategoryID, Categories.Name AS cat_name
Categories
ORDER BY name
< / cfquery >
< head >
< / head >
< body >
< cfoutput >
< form action = method of "project - Action.cfm" = "post" name = 'projects' id = 'projects '.
enctype = "multipart/form-data" onsubmit = "saveIt ()" >
< input type = "hidden" name = 'ID' value = '#variables. ProjectID #">"

< input type = "text" name = 'proj_name' class = 'textInputs"value =" ' #variables.proj_name # ' maxLength '510' = > "

"< textarea cols =" "lines =" "name ="PDSeditor"style =" display: none "> #variables. Description # < / textarea >

< select name = "CategoryID" size = "1" class = 'everyday' >
< IsDefined ("projMan.CategoryID") cfif >
< option value = "#projMan.CategoryID #" > #projMan.cat_name # < / option >
< cfelse >
< option value = "" >--select a category--< / option >
< / cfif >
< cfloop query = 'catList' >
< option value = "#CategoryID #" > #cat_name # < / option >
< / cfloop >
< / select > < / cfoutput >
< / body >


«"" "Action page:»»"»

"< cfquery datasource =" "#sitedatasource #" username = "#siteUserID #
password = "#sitePassword #" >
Projects UPDATE
SET
Projects.Name = < cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.proj_name #" >.
Projects.CategoryID = < cfqueryparam value = '#form. "CategoryID #" cfsqlType = "CF_SQL_INTEGER" >.
Projects.Description = < cfqueryparam cfsqltype = "cf_sql_longvarchar."
value = '#form. PDSeditor #">"
WHERE ProjectID = < cfqueryparam value = "" #form.ID # "cfsqlType ="CF_SQL_INTEGER">"
< / cfquery >
< cflocation url = 'project - manager .cfm' >
< cfelse >
"< cfquery datasource =" "#sitedatasource #" username = "#siteUserID #
password = "#sitePassword #" >
INSERT INTO projects
(Name, Description, CategoryID)
VALUES
(< cfqueryparam cfsqltype = "cf_sql_varchar" value = "#form.proj_name #" >,)
< cfqueryparam cfsqltype = "cf_sql_longvarchar" value = "#form. PDSeditor #">,"
< cfqueryparam value = '#form. ("CategoryID #" cfsqlType = "CF_SQL_INTEGER" >)
< / cfquery >
< cflocation url = 'project - manager .cfm' >


I don't see why there is no records are transferred to the DB. Can someone help me?

Thank you.

Phoenix

the order of the values that you insert is different from the order of the array
fields, that they are inserted in your INSERT query:

INSERT INTO projects
(Name, body, MYFile, CategoryID)
VALUES
(,
,
,

NULL = "#NOT fileuploaded # ' >)

in the part of the INSERTION, the order of the fields is NAME, BODY, MYFILE CATEGORYID
in the part of VALUES, the order of the values is NAME, BODY, CATEGORYID, MYFILE

HTH

---
Azadi Saryev
SABAI - Dee.com
http://www.SABAI-Dee.com

Tags: ColdFusion

Similar Questions

  • using Xp the sd popup does not work on the insertion of the sd chip into the slot, how can it be repaired?

    normally on the insertion of the sd chip a pop-up dialog box appears asking what route you want that information to sd etc. This pop up does not work and the only way I can get into the sd information is to search on D:, then click on 'Open' please notify if MS can restore the pop up facillity?

    Hi JohnWack,

    Welcome to the Microsoft Community Forums.

    We're here to help and guide you in the right direction.

    According to the description of the problem, I understand that you do not get the AutoPlay option when you insert the SD chip into the Windows XP computer.

    -What do you mean by "what route you want to than the sd information etc."? Are you referring to the auto play feature?

    Try these methods.

    Method 1

    Double-click on "My Computer", right-click on the drive you want to Auto play and click 'properties '.

    Click the 'Auto play '.

    Method 2

    Steps to enable AutoPlay.

    1. start, click run, type Gpedit.msc in the Open box, and then click OK.
    2. under Computer Configuration, expand models of administration and then click System.
    3. in the settings pane, do a right click Enable Autoplay, and then click Properties.

    For your reference.

    Windows XP does not recognize a secure digital card when you reinsert it after you remove it
    http://support.Microsoft.com/kb/812661

    It will be useful.
    Let us know if you encounter problems under windows in the future. We will be happy to help you.

  • can't connect to my home internet income james ashley forgot it the link password does not work and the password I was given does not fit into the password box

    can't connect to my home internet income james ashley forgot it the link password does not work and the password I was given does not fit into the password box

    Are you sure that you do not have to register on this site through the usual way and what you should be used elsewhere on the site?

    Have you tried to contact them to help this topic or to check if they have a FAQ on this subject?

    I found this in another thread that you created [*]:

    I'm not sure do I bought a home income internet james ashley program and I copied the login info I was given and the password does not fit into the window of password and I forgot the link password does not work I sent emails, but do not receive an answer im don't know what to do is anyway you can help me to recover my info or help me change the password?

    I assume that you have downloaded and installed this program and need to use this password in this program or only you can use these data to download the program from the site james ashley?

  • Camileo P30 does not work when the 8 GB SDHC card is inserted

    Hello
    I just got a new camcorder Camileo P30.
    I also bought a card 8 GB class SDHC 6 100 'Lexar Premium' x
    And it does not work with the card inserted.

    Here are the symptoms:
    (1) when the card is not inserted I can do everything OK - take pictures and video, use the menus, it turn on and off.
    (2) when the card is inserted, the following occurs:
    2.1) I can't take pictures or video - it does not meet the pressed buttons.
    2.2) I can't access menus.
    2.3) I can't shut off again.
    2.4) I do not identify the amount of memory is available (shows only 0 recording time remaining).
    (3) I have tried different combinations of:
    3.1) Insert the card so that the camera is turned off.
    3.2) Insert the card so that the camera is turned on
    3.3) Insert the card while the device is switched on and in one of the menus.
    (4) the camera doesn't always work if I take the card again.

    During these expriments (#3), I was sometimes able to get a record time correct left (#2.4), but still #2.1 to 2.3 # were a problem.
    At one point, I was also able to "format" the card and subsequently, he showed a record very long time available (not matching only not to the size of the map) and #2.1 to 2.3 # were still in force (i.e. I couldn't use the camera or turn it off).

    Note to work around the #2.3 I took the battery.

    I was not yet looking for updated firmware, or connect it to the PC.

    Has anyone of you has met with such a problem?
    What did you do to solve it?

    Thank you.

    Hello

    Have you tried another card SDHC?
    I m not very well what is happening here, but I recommend you another card in this camcorder.
    I m P30 not owner but I have a: 30 and the camcorder reads without problems for 16 GB SDHC card. It works perfectly.

  • X 1 2015 - insert key does not work

    The 'insert' key does not work.

    Are there secrets to activate this key?

    IIRC, nor of those who support the default Overtype. It's a little outdated notion. That said, it can always be enabled in Word:
    https://support.Microsoft.com/en-us/KB/982946

    Notepad does not support overtype however.

  • EliteBook 1020: External keyboard does not work in the form of Bitlocker

    We had a few HP 1020 and 1040: models recently, and all have the same question. When the laptop is connected, the external keyboard does not work in the form of Bitlocker. It works in the BIOS and in Windows itself, but not in Bitlocker. This means that we must open the laptop screen to enter the Bitlocker pin, then let it open and GPO that dictates the computer into hibernation when the lid is closed. We have twisted the GPO, but in vain. Anyone else seen elsewhere or a solution?

    If the bios is up to date, I would look at the BIOS settings. I think that Fast Boot is enabled in your case, this may cause usb devices not to see in the stadium that BitLocker requires

  • Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.

    These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.

    If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.

    That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.

    I hope that if anyone else is having problems so it suits.

  • Fate to does not work on the caption text

    Hello

    The fate in and Out does not work on the text caption, it doesn't work on the bottom but not on the text itself.

    Animation of the example:

    1.png2.png3.png

    Is there a way of fate in and out of the text?

    Kind regards

    Frank

    Hi Frank,.

    It's fading, but a bit faster than the bottom. Try it: do the fading in the longer time and you will see the discoloration on the text. I just checked.

    Alternative with more control: put the text into a legend of transparent text on top of the other button with background and apply an effect (0%) Alpha to 100% on this text.

    Lilybiri

  • I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    Hi yjain51,

    I understand you had some problems recently with getting Touch ID to work reliably on your iPhone 5s. I know that it is a feature of great security for your iPhone, so I'm happy to help you.

    When you use Touch ID, make sure that your hands are free of any dirt or moisture so that fingerprints can be read clearly. This article explains further:

    Use the ID Touch on iPhone and iPad - Apple Support

    Thank you for using communities Support from Apple. See you soon!

  • Download Nikon D90 photos via a cable of Photos does not work. The picture freezes and does not matter. Any ideas?

    Download photos of Nikon D90 Photos OS El Capitan 10.11.16 cable does not work. The picture freezes and does not matter. Any ideas?

    Try with Capture of Image (in your applications folder)

    LN

  • My apple pencil does not work after the 9.3.4 update.

    My apple pencil does not work after the 9.3.4 update. I tried to restart but still does not work. Tried to forget the device and whenever I connect the pencil to the ipad pro, it is said that it does not recognize the cable / device. Help please.

    < re-titled by host >

    Greetings RechargeableJam,

    Welcome to the communities of Apple Support!

    I see that your Apple pencil does not work after update to iOS 9.3.4. I guess it's about to have a problem with something that worked with the previous version of the iOS software. I'm happy to help you to help you find the best resolution.

    First of all, let's close open applications on your iPad Pro. This can ensure that there is nothing running in the background that is causing a conflict. The following article will help you:

    Force a nearby application on your iPhone, iPad or iPod touch

    Then connect the pencil of Apple and see if it is recognized for the time being. If you don't see the Pair button, wait a minute while your Apple pencil costs. Then disconnect your Apple pencil, Plug and back on hold until you see the button in hand.

    Best regards.

  • AutoComplete does not work on the address field.

    AutoComplete does not work on the address field. This means that the completed form is missing from the address. What is special about the address field and why doesn't autocomplete work? I have NOT opted for "don't follow it.

    http://www.thepetitionsite.com/TakeAction/918/708/047/

    Hi robmm76. I looked at the link you provided. It seems that the reason why AutoFill does not work for the address field is because of the way this field has been programmed on the site. It has been programmed to make type you part of your address and click on the right pair and it would then fill in city, State and zip code. If this field is just a special case.

    I hope this information answers your question. If you need more information or help please do not hesitate to reply to this reply.

  • Acorn TV does not work on the new Apple TV

    So disappointed that the Acorn TV app does not work with the new Apple TV we just bought. We have subscribed on iTunes and nothing happens when you try to activate the software. We can look good on the MacBook, iPad and iPhone. Verified the purchase on iTunes account and that's fine. Contact Acorn and say it is a matter of Apple.

    Strange that I have to use Chrome to even write this question. Safari and hers do not work with the Support pages. I'll send in the comments.

    I'm resetting Apple TV now. We have been with the Apple TV since version 1. I hope that we can make this work!

    How would work appletv mount 1 app on the job?

    each app to live their own lives the appletv core do not even know what applications do they just

    Use the ios network to get their content

  • Shortcut Ctrl C does not work in the main window of Firefox

    I use Firefox version 38.0.5, Windows 7
    Since the update Ctrl + C shortcut does not work in the main window of Firefox. (I can't copy text from any website using Ctrl + C).

    Click right and using the copy in the menu works perfectly. CTRL V and Ctrl X work fine without problem.

    Ctrl C works fine when copying text from the address bar and search bar, I just can't copy anything from anything in the main window of firefox.
    

    I tried to run Firefox in safe mode, I have also reset firefox and a virus scanner, but nothing has solved the problem.

    If anyone has any suggestions, that would be great. Thank you

    See:

    • bug 1173979 - copy Ctrl + C is broken in the last Irish FF 38.0.5

    Please, do not comment in bug reports
    https://Bugzilla.Mozilla.org/page.cgi?id=etiquette.html

  • Search Safari 9.1.1 does not work in the url field. Tabs are not securities.

    After I instaled 9.1.1 safari search option does not work since the URL field and tabs is not titles. IOS 10.11.5 macbook pro late 2011.

    Restart your Mac while holding down the SHIFT key. Secure boot is slow, so give it time to start your Mac completely and then restart normally.

Maybe you are looking for

  • Word file with macros trojan

    Hello world I have a doubt, recently I downloaded a file attachment to an e-mail, it was a MS Word file with macros and the Internet search that I discovered that it's a Trojan horse, the question is that if I downloaded the file and the Word automat

  • I can't increase the number of emails stored in my Inbox beyond 50

    Even if I put that no message is deleted using tools that the previous ones are deleted automatically. What I am doing wrong?

  • Airport slower speed on iOS devices

    I recently had an upgrade from my ISP to our slavish ADSL ADSL service, which bands together several modems to increase the speed.  Before the change, I received about 11 Mbps, and is compatible on all devices - iMac, iMac with airport Time Capsule e

  • Indicator registry change?

    It's probably an easy one... but I can't reason it. (Relatively new to Labview)  I have a State Machine installation... I wish that my front panel to show what case is currently active.  I think that I need to extract data from the shift register, bu

  • Repeatedly offered KB954430

    whenever I turn on my computer the update 954430 kb gets on my computer so now I have this update 25 times on my computer and every time I shut down my computer it is on my computer again. is there someone who has a solution Greetz hummie