PDA

View Full Version : Script not running queries


Useless
11-29-2005, 10:03 PM
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. :oops: 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.

Useless
11-30-2005, 06:57 AM
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.

Useless
11-30-2005, 08:00 AM
Just me talking to me... :D

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

CentOS/Plesk

Kevin
12-03-2005, 04:15 AM
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