+ Reply to Thread
Results 1 to 4 of 4

Thread: Script not running queries

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    7

    Default Script not running queries

    Any guesses on why a PHP script would connect with its mysql db, yet not insert nor delete entries? I'm not getting any errors - but I'm not seeing any changes either. This is a new one for me. ops: In fact, I can hit submit on the PHP form without filling anything in and not recieve the scripted errors that should be produced by empty form fields. Wacky. Probably something simple, but I'm too dazed to see it.

  2. #2
    Junior Member
    Join Date
    Nov 2005
    Posts
    7

    Default

    So...it's not the interaction with mysql. It's the PHP script itself, which has worked fine at my last three hosts (yes, I'm a host jumper). What would keep "post" from working in PHP? All of the includes seem fine and dandy, I just can't use forms that submit data using post. Any help or hints would be much appreciated.

  3. #3
    Junior Member
    Join Date
    Nov 2005
    Posts
    7

    Default

    Just me talking to me...

    Should I assume that the VPS servers have atypical settings on the php.ini?

    CentOS/Plesk

  4. #4
    I love LAMP.
    Join Date
    Jul 2004
    Location
    Chicago, Illinois, United States
    Posts
    201

    Default

    register_globals is off in most newer server installations. This means variables like for a field named "field" will not exist in the form "$field," but rather only as $_POST['field'] or $_REQUEST['field']. You can edit your php.ini to enable register globals, though it is considered unsafe for various reasons.

    You can find more information searching for register_globals at php.net
    Kevin Stange
    Chief Technology Officer
    Steadfast Networks
    http://steadfast.net
    kevin@steadfast.net

+ Reply to Thread

Posting Permissions

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