Home » MySQL, PHP

Very simple add, edit, delete, display in PHP

5 March 2008 7,082 views Popularity: 14% Share/Bookmark

email

Before I had posted an article to add, edit, delete, and display contents. I had also included sessions there. There was the facility to login and register users too.

But i got feedback that it was a bit complex for novice users of PHP (users who have just started PHPing). It was a kind of full-fledge system with PHP, MySQL and session.

So in this article, I have simplified the same functionality of the above tutorial. I have not used session in this case. If you want tutorial about session, login, and register then you can refer to my previous article (the link which is provided above).

Files included in this tutorial/code:

users.sql = This contains sql queries to make MySQL database and table

config.php = contains the database connection code (this file is included in all the php pages with the include() function)

index.php = contains the display part (displaying data from database)

add.html = contains form to add data

add.php = contains php code to add data

edit.php = contains php code to edit data

delete.php = contains php code to delete data

Download full source code: Create, read, update, delete in php and mysql

Cheers,

Related posts:

  1. Add, edit, delete, login, register in PHP :: A simple and complete tutorial
  2. Magento: How to delete System Attribute?
  3. Magento: How to select, insert, update, and delete data?
  4. Magento: How to delete / remove extension from MagentoConnect?
  5. Session Handling in PHP
  6. Magento: Create, read, delete cookie
  7. Simple and easy jQuery tabs with AJAX and PHP
  8. Inheritance in PHP :: A Simple Example
  9. Magento: Product Edit Warning: Invalid argument supplied for foreach()
  10. Creating dynamic table in PHP : Easy and Simple tutorial
  • Michael

    Thanks for your help sir….

  • Jsquad2008

    thak you sir for your kind!…

  • Bulbul4u_only

    thanks

  • Avinash Powar

    This is very good but how can i edit if my data type is TEXT & textarea control ?

  • Thalhah Amir

    thanks

  • Trebor

    many thanks for posting this tutorial. Question please, for me Edit page only displays first six or so characters in name, age and email fields. Is there a way to display more or all characters?

  • Trebor

    many thanks for posting this tutorial. Question please, for me Edit page only displays first six or so characters in name, age and email fields. Is there a way to display more or all characters?

  • Priyanshu Mittal

    hey thts a coll example thnk you helped me alot

  • Cindie Kato

    tnx dude

  • Ravi

    Thanks Mukesh,
    Your code is very helpful , I am creating a small client server application with database.
    Users(with different login) can submit their daily data and can see and edit them .
    admin can see all the users and generate report.

    I am still in process , but your code has help me a lot in user page development.
    thanks
    Ravi

  • Srinivas4146

    good tutorial for learners