violation error RRS feed

  • Question

  • User625198923 posted


    I'm attempting to run a php script accessing a mysql database with IIS.  Access to the db is fine (reading and inserting) but when I attempt to use a submit button on a web page I get the following error:

    PHP has encountered an Access Violation at 0177B74E

    I'm assuming it is trying to access a forbidden memory area.  I've configured php to use isapi.  Should it be configured for cgi?



    Thursday, June 26, 2008 11:38 AM

All replies

  • User2093557029 posted

    It shouldn't be an between using ISAPI or CGI. I have plenty of forms working perfectly using either. Anything in your PHP log?

    Wednesday, July 2, 2008 5:17 PM
  • User625198923 posted

     No.  But i've narrowed the problem dowm a bit.  When I run the query with fixed values. it is ok.  But as soon as I put in a text field and try to pass the data as a variable the violation error occurs.

     Here's a cut down version of the query that doesn't work:

    $query = "INSERT INTO del_info(del_lname, del_fname,) VALUES ('$del_lname', 'smith')";

    $del_lname refers to the text field del_lname

    As you've probably guessed I've only recently stated working with php.




    Thursday, July 3, 2008 9:42 AM