Updating MySQL record

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Updating MySQL record

    Hi!
    I'm heaving a small problem updating a record containing an encrypted
    password. I'm using aes_encrypt.

    This is my suggestion for the query (that obviously doesn't work very well):

    $sql_update = "UPDATE $Tabell SET
    fornavn = \"$for_navn\",
    etternavn = \"$etter_navn\",
    brukernavn = \"$bruker_navn\",
    passord = aes_encrypt(\"$pass_ord\")
    WHERE brukerid=\"$id\"";

    Can anybody help me with a query that will work?

    Tnx
    Dag Eilertsen




    Dag Eilertsen Guest

  2. Similar Questions and Discussions

    1. MySQL datetime record not updating with DW toolbox
      Hello just upgraded DW8 to CS3 and added DW Dev Toolbox extensions. Using registration wizard am unable to store a value for MySQL datatype...
    2. Updating record remotely from a script?
      I have a MySQL database on my ISP's Linux server. Can anyone tell me if it would be possible to update a specific record remotely without any user...
    3. Problems when updating record
      I am having a problem with the following code with mySQL. I normally write with Access and do not get this problem, is there something that I am...
    4. Updating a NEW record
      ASP/Access Say a user creates a new record and needs to complete multiple forms, on multiple pages.... How do you submit the data to each page...
    5. Question about Updating a record
      Ok, here's what we can assume: <cfset update = "ALIAS = 'Gruu'"> <cfset id = '999'> Here's the simplified query: <cfquery name="angryquery"...
  3. #2

    Default Re: Updating MySQL record

    *** Dag Eilertsen wrote/escribió (Mon, 30 Aug 2004 04:56:24 +0200):
    > I'm heaving a small problem updating a record containing an encrypted
    > password. I'm using aes_encrypt.
    Have you checked whether AES_ENCRYPT() works in your MySQL server?

    "AES_ENCRYPT() and AES_DECRYPT() were added in MySQL 4.0.2, and can be
    considered the most cryptographically secure encryption functions currently
    available in MySQL."



    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- Questions sent to my mailbox will be billed ;-)
    --
    Alvaro G Vicario Guest

  4. #3

    Default Re: Updating MySQL record

    "Dag Eilertsen" <dag.erik.eilertsen@broadpark.no> wrote in message
    news:41329855$1@news.broadpark.no...
    > Hi!
    > I'm heaving a small problem updating a record containing an encrypted
    > password. I'm using aes_encrypt.
    >
    > This is my suggestion for the query (that obviously doesn't work very
    well):

    It's far from obvious to me.
    > $sql_update = "UPDATE $Tabell SET
    > fornavn = \"$for_navn\",
    > etternavn = \"$etter_navn\",
    > brukernavn = \"$bruker_navn\",
    > passord = aes_encrypt(\"$pass_ord\")
    > WHERE brukerid=\"$id\"";
    >
    > Can anybody help me with a query that will work?
    In what way did this one fail?

    - Virgil


    Virgil Green 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