Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
This is the forum to discuss the Wrox book Professional PHP5 by Ed Lecky-Thompson, Heow Eide-Goodman, Steven D. Nowicki, Alec Cove; ISBN: 9780764572821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 5th, 2007, 10:37 AM
Registered User
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch 7. Problems with Updating using GenericObject

Hi All

Am looking to use the GenericObject class within a web-application but have a problem with how to use it to update database fields.

Assuming I can pre-populate a user-form from the data loaded by instantiating an object of the class, how can I then use the SetField method dynamically? ie. to pass any changed values back to the $database_fields member variable ready to be saved to the database.

I'm not fully clear on the workings of classes generally but it seems to me that using a form will action to a new page & hence a completely new object, as will using php_self to recall the same page.

In either case it seems strange having an object that allows an update only if the update value is hard-coded into the script.

Anyone have any thoughts (& preferably a solution :-) on this subject?



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with the cart updating JayLou BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 23rd, 2007 05:23 AM
GenericObject with Database Abstraction soccer022483 BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 March 28th, 2006 07:09 AM
ch 6 commit.php problem updating movie table statusquo BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 May 2nd, 2005 10:02 PM
HELP!! So close..CH 16 - problem updating BookNews seeDerekNow JSP Basics 0 August 25th, 2004 12:48 AM
Problems with Ch. 18 example tomephillips BOOK: Beginning ASP 3.0 5 November 6th, 2003 08:25 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.