our page is not insert

Discussion in 'PHP' started by myautoagent, Apr 23, 2010.

  1. #1
    Hi All,
    our page is not inserted values in database
    please let me know how to solve its, your suggestion would be appreciated.
     
    Last edited: Apr 23, 2010
    myautoagent, Apr 23, 2010 IP
  2. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #2
    2 things:

    - valuse should be values
    - you should also escape your variables, see mysql_real_escape_string() on php.net
     
    mfscripts, Apr 23, 2010 IP
  3. myautoagent

    myautoagent Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have use now its
    but no changes.
     
    myautoagent, Apr 23, 2010 IP
  4. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #4
    Have you added mysql_real_escape_string() to the query?
     
    mfscripts, Apr 23, 2010 IP
  5. myautoagent

    myautoagent Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    where and how we should be added mysql_real_escape_string() to the query?
     
    myautoagent, Apr 23, 2010 IP
  6. whigfield

    whigfield Greenhorn

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #6
    Like this:

     
    whigfield, Apr 23, 2010 IP
  7. myautoagent

    myautoagent Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have try your given code, still not insert value in database
     
    myautoagent, Apr 23, 2010 IP
  8. whigfield

    whigfield Greenhorn

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #8
    Try this:
    And then see what the error message says?
     
    whigfield, Apr 23, 2010 IP
  9. glenlee108

    glenlee108 Guest

    Messages:
    154
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    added mysql_real_escape_string() to the query
     
    glenlee108, Apr 23, 2010 IP