Record Set Variables used in PHP and MYSQL model

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Record Set Variables used in PHP and MYSQL model

    :Q

    PHP MYSQL server model.

    I'e been using dreamweaver for ages and have allways admired how well they
    have kept compatibility between versions. The recent 8.02 release was a little
    bit of a shock when I had to start rewriting all my PHP MYSQL recordset queries!

    In the bulk of my SQL queries I detect on of two states for a query parameter
    and in some queries the parameters are used more then once. By creating a
    single variable in for the recordset I've allways been able to check and
    recheck the single variable in the query using the standard recordset. Now in
    version 8.02 I am getting the error: Missing type for variable:colname
    So where:

    <font color=white style="background-color: 3E3E3E;">SELECT *
    FROM links
    WHERE LinkID = colname or colname=-1
    ORDER BY `Level` DESC</font ft>

    used to work it does not work any more!

    I'm being forced to rewrite the query:

    <font color=white style="background-color: 3E3E3E;">
    SELECT *
    FROM links
    WHERE colname in (-1,LinkID)
    ORDER BY `Level` DESC</font ft>

    Simple enough but where the queries get more complex the more variables I have
    to define!

    This is not Cool! Can we get a bug fix for this so that I dont have to rewrite
    all my queries!

    P.S. Since when did anyone say that the Dreamweaver was SQL injection safe!
    This issue should have been resolved back in the Ultradev days! I guess Kudos
    goes to Adobe for finally trying to address one of the biggest glaring issues
    dreamweaver has had since it's inception. I was allways kinda upset that I was
    forced to pass variables as text when I knew they where numbers!
    If I Look at the resultant code now I'm sure the result sprint will still be
    using %s instead of %n when I indicate a variable is numeric.

    DanielBoone Guest

  2. Similar Questions and Discussions

    1. Insert Record and pass url variables
      Using PHP and MySQL, I want to set up a form that inserts a new record into the database, and on the redirect page, i want it to have a url variable...
    2. 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...
    3. MySQL/PHP problem. getting field names from MySQL and using it asPHP variables
      Is this possible? I'd like to just get the field names from my database and use it as variables to save me from making errors as to where i should...
    4. mySQL / Last inserted record ID
      Hi, I'm using mySQL and wanted to get the ID of the record that I have just inserted in to the table (sentmessages). There is a function in mySQL...
    5. Adding record to a MYSQL DB using PHP ?
      What is the best way to add a new record to a MYSQL DB using a FORM and PHP ? Any examples or URLS ? Thanks
  3. #2

    Default Re: Record Set Variables used in PHP and MYSQL model

    :confused;
    Start by saying bump.
    I've still no word from Adobe if they are doing anything with this problem.
    Any one had any replys from Adobe on it? Any one found a work around with
    recoding queries?

    DanielBoone 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