News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SpeckBoy.com:
Getting Started with CRUD In PHP
February 18, 2011 @ 12:10:10

On SpeckBoy.com there's a new tutorial posted that introduces you to the concept of CRUD - Create, Read, Update, Delete - in the database interface for your application. Technically CRUD can be applied to any sort of data store, but they chose to go with a MySQL-based example.

It has become a common necessity for website owners to collect data and manage it properly. Creating a MySQL CRUD class allows you to conveniently create, read, update and delete entries for any of your projects, indifferent of how the database is devised. CRUD allows us to generate pages to list and edit database records. So, in this tutorial I will show you how to build a simple CRUD web app, that will empower you with the basic functions of database management.

They briefly walk you through the setup of a XAMPP server to use as a base and give you the settings needed to create a simple users table. The rest of the post is the code you'll need to make the connection from your PHP script, insert data into the table, update them, remove the rows and display their contents. They've wrapped it all up in a single "index.php" file to make it simpler.

0 comments voice your opinion now!
crud database mysql tutorial create read update delete


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: The Standard PHP Library (SPL)

PHPro.org: Calculate Friday The 13th With Datetime Class

Stefan Mischook's Blog: Building Objects Video (Parts 1, 2 & 3)

David Coallier's Blog: Zend Framework Without PDO

KillerPHP.com: Zend Framework Components Part 2: Zend_View


Community Events

Don't see your event here?
Let us know!


laravel xdebug language series framework community api interview laravel5 introduction release install podcast php7 opinion voicesoftheelephpant unittest library example extension

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework