I got fed up with my hosting service's limiting my processor power. It was taking far too long to do stuff. So I created my own server. It's a windows machine, but I put the latest versions of Apache, mysql, and php on it. All are configured basicly to defualts besides the changes I had to make so that I could actually access the server.
On to the problem. I'll use the following simple table to descirbe.
table name : tab
fields : (name, address, city, zip)
On the site that I pay to get hosted, I could write a simple php insert to the table that didn't use all the fields:
Expand|Select|Wrap|Line Numbers
- mysql_query("INSERT INTO tab (name, zip) VALUES ('something', 'something')");
Now on my own server, It won't even do the insert when i write it like that.
I have to write the insert as
Expand|Select|Wrap|Line Numbers
- mysql_query("INSERT INTO tab (name, address, city, zip) VALUES ('something', '', 'something', '')");
Is there a setting I can change on my server that allows for the previous method? I don't really understand why it would work on one server but not another.
Any help would be appreciated. Thanks