HenryCan Posted August 7, 2014 Share Posted August 7, 2014 I'd like to write - or acquire - code that displays a simple table (name, phone number, email address, plus a comments field) on a web page in a password-protected page and allows a user to add his own information, update it or delete it.I figure hundreds of people and companies have written something like this so I'd like to find either an example I can imitate or even an existing package that I can simply customize to the specifics for my own table.Can anyone help me with that? Or am I going to have to reinvent the wheel for the gazillionth time and write it myself? Quote Link to comment https://forums.phpfreaks.com/topic/290326-standard-insertupdatedelete-code-for-a-simple-table/ Share on other sites More sharing options...
Solution Ch0cu3r Posted August 7, 2014 Solution Share Posted August 7, 2014 Look for tutorials on CRUD (stands for create, read, update and delete). Quick google for "PHP CRUD" found this http://www.startutorial.com/articles/view/php-crud-tutorial-part-1 That is a good starting point. If you understood the tutorial you should be able implement the comments field with ease. Quote Link to comment https://forums.phpfreaks.com/topic/290326-standard-insertupdatedelete-code-for-a-simple-table/#findComment-1487117 Share on other sites More sharing options...
HenryCan Posted August 8, 2014 Author Share Posted August 8, 2014 I may be jumping the gun a bit in giving the Ch0cu3r a "Best Answer" for his reply but it will definitely get me started. Thank you for suggesting this tutorial. I've only skimmed it but it looks like it will cover the necessary ground. Quote Link to comment https://forums.phpfreaks.com/topic/290326-standard-insertupdatedelete-code-for-a-simple-table/#findComment-1487168 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.