Jump to content

Standard insert/update/delete code for a simple table?


Go to solution Solved by Ch0cu3r,

Recommended Posts

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?

  • Solution

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.