Re: Re: [ANNOUNCEMENT] DB_Table-0.22.0 (beta) Released.

From: Date: Mon, 01 Nov 2004 21:46:58 +0000
Subject: Re: Re: [ANNOUNCEMENT] DB_Table-0.22.0 (beta) Released.
References: 1 2 3  Groups: php.pear.dev php.pear.general 
Request: Send a blank email to pear-dev+get-34190@lists.php.net to get a copy of this message
On Oct 29, 2004, at 3:01 AM, Michael Wallner wrote:
Hi Paul M Jones, you wrote:
Check the .ini file, I think it's set to drop the table and re-create it on every page load. Change "create = drop" to "create = safe" and see if the insert sticks.
I'm sorry to say that this didn't change anything :( $result is always NULL.
That's because I am an idiot. ;-) The bogotest.php scrip is validating the insert data, not performing the insert. Change the line at the end of the file from this ... $result = $example->validInsert($values['mydata']); ... to this ... $result = $example->insert($values['mydata']); ... and it should work. I'll fix the test on the next release. As ever, my thanks for your patience. :-) -- Paul M. Jones Savant: the simple alternative to Smarty for PHP. http://phpsavant.com/ DB_Table: build RDBMS tables and XHTML forms in one PHP class. http://wiki.ciaweb.net/yawiki/index.php?area=DB_Table Yawiki: your collaborative online documentation system. http://yawiki.com/ Yawp: a single-file foundation for PHP applications. http://phpyawp.com/

« previous php.pear.dev (#34190) next »