Update query works on localhost but not on server
Hi people, got some weird issue.
My update query isn't working once I upload my files on server, It works perfectly on localhost and delivers what its intended to do.
I echoed my update query
On local host it gave me:
UPDATE displayusertrip SET displaytripmnth='JAN', displaytripyr='2012', displaytriptrps=' Goa Trip, Bengal Trip,Kerala Trip, Manali Trip, Ooty Trip' WHERE displaytripid='1'
But after uploading on server, it gave:
UPDATE displayusertrip SET displaytripmnth='', displaytripyr='', displaytriptrps='' WHERE displaytripid='1'
Its just passing blank values....
I mean its same code, same tables, then how come it won't work on server if its working on localhost?
Anyone has encountered any similar issues in past.
Pls Reply...
Regards
11 Months Ago
Last Updated
Related Article: Update query not working
is a PHP discussion thread by yousaf1214 that has 4 replies, was last updated 9 months ago and has been tagged with the keywords: php, update, query.
Albert Pinto
Junior Poster in Training
58 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Thanx for the reply Sir,
My updae query isn't working.... select and delete are fine....
I created a file ver.php to check the version and just inserted this code in it....
<?php
phpinfo();
?>
localhost php version is 5.2.6
But After uploading I went to the proper url but ver.php page is blank......
Albert Pinto
Junior Poster in Training
58 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0