Command Update variables

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Command Update variables

    Hi,

    After some great help from people on this forum I have nearly sorted
    collecting my callback from WorldPay.

    I am using Command Update which works a treat, apart from the fact that it
    will only accept variables which are numbers, which is strange because the
    fields in the table I'm inserting into are definitely text fields. Am I
    supposed to specify the type of data in my Command Update query?

    Thanks, Mark.

    funkster Guest

  2. Similar Questions and Discussions

    1. Datagrid Update Command
      Any help PLEASE! I have a datagrid on a aspx page. The editcommand and cancelcommand work as explected however my updatecommand is not. My...
    2. update stage command
      Could someone please tell me what the "update stage" command is for in director MX? when do I need to use this? thanks, Jason Rogers
    3. [PHP] PHP CGI mode and command line variables
      --- CDitty <mail@redhotsweeps.com> wrote: You have to read them in. I think you can just loop through $argv, so something like this will show you...
    4. PHP CGI mode and command line variables
      I have written a script that runs fine when I run it via the command line. However, when I tack on variables to the command line, I get an error. ...
    5. [PHP] Help with UPDATE command...
      Hi Tony, This is only supported in versions 4 and above - if you're using 3.23 you can get away with LIMIT in your update queries, but not...
  3. #2

    Default Re: Command Update variables

    You update SQL would be something like

    update myTable set myField='myVar'

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004



    Julian Roberts Guest

  4. #3

    Default Re: Command Update variables

    This is my statement:-

    INSERT INTO table1 (item1)
    VALUES (varValue1)

    and my variables:-

    Name: varValue1
    Run-time value: Request.Form("item1")

    If the variable passed from the form is a number it works fine, if it is A-Z
    it says:-

    Microsoft OLE DB Provider for ODBC Drivers error '80040e10'

    [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

    /callback.asp, line 30

    (line 30 is the Execute() line)

    btw the field in the access table is a text field

    funkster Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139