Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Apr 10, 2012 4:48 am 
Offline
Newbie

Joined: Wed Mar 07, 2012 4:30 pm
Posts: 2
Hi all,

I am currently having an issue with either PHP or MySQL and I dont seem to be able to find out what it is.

I have MAMP setup on my local system for development and everything seems to work fine without errors.

When I have uploaded it to my linode and I try to insert data to the database it tries to insert the data and everything seems to work correctly and I get no feedback saying that it has not been inserted incorrectly.

When I view the information in the database, all of the fields are left blank with the exception of the id field which is set to auto increment.

I would have said this is due to either a PHP coding error or MySQL syntax error, but this all works on my local MAMP server?

All of the select queries work correctly as the data is all being displayed on the pages. Also all the delete queries work correctly as the data can be deleted in the CMS side of the site.

I have tried using multiple MySQL usernames to make sure its not a permission issue including the root account but this still does not work?

Any help or advice is much appreciated

Thanks
Christian


Top
   
 Post subject:
PostPosted: Tue Apr 10, 2012 7:05 am 
Offline
Newbie

Joined: Wed Mar 07, 2012 4:30 pm
Posts: 2
It seems it was a syntax error and the data was not being escaped correctly when trying to insert it into the database.

Its very weird as the same code worked on my MAMP server :S

Thanks to anybody who had looked or been searching for a solution.


Top
   
 Post subject:
PostPosted: Sat Apr 14, 2012 8:59 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
I know it's pretty old thread, but compare your php.ini settings. (best to check phpinfo() output). You probably have magic quotes enabled on one of the servers, and not on the other one.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group