sayedsohail Posted May 21, 2007 Share Posted May 21, 2007 Hi everyone, Its surprising me when i try to check post submit value, it says you got sql error at line 1, here is the code if (isset($_POST['submit']) && $_POST['submit'] == 'submit') but to my strange when i tried to see any other $_post value the update query works fine here is the other code: if(isset($_POST['f_manufact'])) any ideas, thanks for reading. Quote Link to comment https://forums.phpfreaks.com/topic/52334-solved-if-isset_postsubmit-_postsubmit-submit-making-me-crazy/ Share on other sites More sharing options...
MadTechie Posted May 21, 2007 Share Posted May 21, 2007 try print_r($_POST); whats displayed check the form (again) Quote Link to comment https://forums.phpfreaks.com/topic/52334-solved-if-isset_postsubmit-_postsubmit-submit-making-me-crazy/#findComment-258211 Share on other sites More sharing options...
ToonMariner Posted May 21, 2007 Share Posted May 21, 2007 sql error is not a php error - there mustbe something else. can you post code and possibly a link for us to check... Quote Link to comment https://forums.phpfreaks.com/topic/52334-solved-if-isset_postsubmit-_postsubmit-submit-making-me-crazy/#findComment-258215 Share on other sites More sharing options...
sayedsohail Posted May 21, 2007 Author Share Posted May 21, 2007 this is what it displayed You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 But howcome when i use other post values it works fine, i have problem only when i check submit. Quote Link to comment https://forums.phpfreaks.com/topic/52334-solved-if-isset_postsubmit-_postsubmit-submit-making-me-crazy/#findComment-258216 Share on other sites More sharing options...
chigley Posted May 21, 2007 Share Posted May 21, 2007 Post the code maybe? Quote Link to comment https://forums.phpfreaks.com/topic/52334-solved-if-isset_postsubmit-_postsubmit-submit-making-me-crazy/#findComment-258362 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.