fenway Posted April 22, 2009 Share Posted April 22, 2009 OMG, please stop. Echo the actual sql statment that you're sending to the server, and post the error message you get -- no attachements. Quote Link to comment https://forums.phpfreaks.com/topic/154741-saving-data-from-a-webform/page/2/#findComment-816539 Share on other sites More sharing options...
butty22 Posted April 22, 2009 Author Share Posted April 22, 2009 i have included the echo statement as below but its not showing any error message at all when the form is submitted. if (!$connection) echo "<h1>Connected</h1>"; { die('Could not connect: ' . mysql_error()); echo "<h1>Could not connect</h1>"; } am starting to think that my where my action statement is placed is not done properly. Quote Link to comment https://forums.phpfreaks.com/topic/154741-saving-data-from-a-webform/page/2/#findComment-816646 Share on other sites More sharing options...
fenway Posted April 22, 2009 Share Posted April 22, 2009 Seriously? You're opening the block in the wrong place... write a proper if/else loop. edit: sending a PM to a moderator about basic PHP syntax in a mysql forum? bad idea. Quote Link to comment https://forums.phpfreaks.com/topic/154741-saving-data-from-a-webform/page/2/#findComment-816666 Share on other sites More sharing options...
jackpf Posted April 23, 2009 Share Posted April 23, 2009 I'd recommend looking up a php/mysql tutorial. Quote Link to comment https://forums.phpfreaks.com/topic/154741-saving-data-from-a-webform/page/2/#findComment-817224 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.