wamft Posted December 11, 2012 Share Posted December 11, 2012 I have a form that I have adapted from a sample code but cannot update the records in sql from the form. It pulls the data from the sql with no problems. Can anyone help me. adb_edit.php Quote Link to comment https://forums.phpfreaks.com/topic/271856-form-retreives-data-from-sql-but-cannot-update-record/ Share on other sites More sharing options...
freemancomputer Posted December 11, 2012 Share Posted December 11, 2012 Try changing if(isset($_POST['save'])) To if(isset($_POST['submit'])) Quote Link to comment https://forums.phpfreaks.com/topic/271856-form-retreives-data-from-sql-but-cannot-update-record/#findComment-1398694 Share on other sites More sharing options...
wamft Posted December 11, 2012 Author Share Posted December 11, 2012 Thank you so much freemancomputer. That has done the trick. Not sure why I haven't checked with the experts before I wasted days working it out on my own. Thank you, thank you, thank you. Quote Link to comment https://forums.phpfreaks.com/topic/271856-form-retreives-data-from-sql-but-cannot-update-record/#findComment-1398696 Share on other sites More sharing options...
freemancomputer Posted December 11, 2012 Share Posted December 11, 2012 welcome Quote Link to comment https://forums.phpfreaks.com/topic/271856-form-retreives-data-from-sql-but-cannot-update-record/#findComment-1398750 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.