drizzyt Posted June 23, 2013 Share Posted June 23, 2013 Hello everyone. I am new to this site, and relativley new to php programming. I have been trying for several days now to edit a mysql row through a form. The problem i am having, is that when i try to update through the form i get no update, and no errors along the way. The file attached is the one i am having trouble with. i would appreciate any response. editparser.php Quote Link to comment https://forums.phpfreaks.com/topic/279487-update-mysql-through-form-data-entry/ Share on other sites More sharing options...
ginerjm Posted June 23, 2013 Share Posted June 23, 2013 Did you look at the table to see the record you have been updating? Your query is wrong. Wrap the query in double quotes and the values in single ones so that your values are actually included, and not just the text of the variable names. Quote Link to comment https://forums.phpfreaks.com/topic/279487-update-mysql-through-form-data-entry/#findComment-1437547 Share on other sites More sharing options...
drizzyt Posted June 23, 2013 Author Share Posted June 23, 2013 yes. I did that to begin with. Then i kept getting errors, saying check my version of mysql for proper syntax, or something. I kept getting that error untill i did it this way, but i will try it again, and yes i did check the table and there was no update. Quote Link to comment https://forums.phpfreaks.com/topic/279487-update-mysql-through-form-data-entry/#findComment-1437549 Share on other sites More sharing options...
drizzyt Posted June 23, 2013 Author Share Posted June 23, 2013 oh wow, nvm. I must have been putting them somewhere else. You fixed it, thanks boss. Quote Link to comment https://forums.phpfreaks.com/topic/279487-update-mysql-through-form-data-entry/#findComment-1437551 Share on other sites More sharing options...
Solution ginerjm Posted June 23, 2013 Solution Share Posted June 23, 2013 HTH - pls be sure to mark this as answered. Quote Link to comment https://forums.phpfreaks.com/topic/279487-update-mysql-through-form-data-entry/#findComment-1437552 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.