Re: Editing Module

From: Date: Thu, 14 Oct 2004 02:35:48 +0000
Subject: Re: Editing Module
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36788@lists.php.net to get a copy of this message
Ron Piggott wrote:
How do you get the computer to remember the old record so after you search, find and display it, type in changes in a web form and then do the replace. I don't want to create a new record, but update the current record
Each record should have a unique identifier, such as an auto_increment column for MySQL (every database has something like this, sometimes called a sequence). So when you are editing record 123, then you pass 123 as a hidden value in your form and then you'll know what record to update... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.db (#36788) next »