RE: [PHP] Create PHP form from MySQL table structure

2008-12-24 Thread Ronnie MacGregor
On Tue, 23 Dec 2008 06:38:29 -0600 Jay Blanchard said : Here is a quick and dirty function that I have used for a couple of years now, complete with comments; function formCreate($database, $table, $action, $excludeCols, $recordID){ Jay This function is very good for creating the contents

Re: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Ronnie MacGregor
On Sun, 21 Dec 2008 12:24:30 -0500 tedd said : Interesting. I am sure that one can write a script to find all the fields in a table and create a form from that. Yes I could write my own, but was trying to avoid re-inventing the wheel. However, I don't know of any utility that does that.

RE: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Jay Blanchard
[snip] Yes I could write my own, but was trying to avoid re-inventing the wheel. [/snip] Here is a quick and dirty function that I have used for a couple of years now, complete with comments; function formCreate($database, $table, $action, $excludeCols, $recordID){ /* * This

Re: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Richard Heyes
... In a similar vain to phpMyEdit (or whatever it's called), is my MySQL Table Editor. It's aimed at maintaining a table, but without allowing users to destroy your table Which helps. http://www.phpguru.org/static/TableEditorComparison.html http://www.phpguru.org/static/TableEditor.html

RE: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread tedd
Here is a quick and dirty function that I have used for a couple of years now, complete with comments; -snip- Nice piece of code -- thanks for providing that. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

RE: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Jay Blanchard
[snip] Nice piece of code -- thanks for providing that. [/snip] You're welcome. It could stand a few small improvements, but I pretty much use it every day. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Eric Butera
On Sun, Dec 21, 2008 at 5:35 AM, R B MacGregor m...@dbasedeveloper.co.uk wrote: Hi folks Anybody got any recommendations for a utility which would create a quick head start by creating the php/html code for a basic form using the field structure of a MySQL table ? Thanks for any

RE: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Ronnie MacGregor
On Tue, 23 Dec 2008 06:38:29 -0600 Jay Blanchard said : Here is a quick and dirty function that I have used for a couple of years now, complete with comments; This looks very promising, thanks for sharing. -- Ronnie MacGregor Scotland Ronnie at dBASEdeveloper dot co dot uk

Re: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Ronnie MacGregor
On Tue, 23 Dec 2008 11:38:22 -0500 Eric Butera said : a lot of frameworks have scaffolding or crud screens they can make for you to do this. (cake, akelos, yii, code igniter) http://codeigniter.com/user_guide/general/scaffolding.html http://book.cakephp.org/view/311/Scaffolding

Re: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Ronnie MacGregor
On Tue, 23 Dec 2008 13:15:04 + Richard Heyes said : In a similar vain to phpMyEdit (or whatever it's called), is my MySQL Table Editor. It's aimed at maintaining a table, but without allowing users to destroy your table Which helps.

[PHP] Create PHP form from MySQL table structure

2008-12-21 Thread R B MacGregor
Hi folks Anybody got any recommendations for a utility which would create a quick head start by creating the php/html code for a basic form using the field structure of a MySQL table ? Thanks for any suggestions. -- Ronnie MacGregor Scotland Ronnie at dBASEdeveloper dot co dot uk

Re: [PHP] Create PHP form from MySQL table structure

2008-12-21 Thread tedd
At 10:35 AM + 12/21/08, R B MacGregor wrote: Hi folks Anybody got any recommendations for a utility which would create a quick head start by creating the php/html code for a basic form using the field structure of a MySQL table ? Thanks for any suggestions. -- Ronnie MacGregor Scotland

Re: [PHP] Create PHP form from MySQL table structure

2008-12-21 Thread Bassel Safadi
On Sun, Dec 21, 2008 at 7:24 PM, tedd tedd.sperl...@gmail.com wrote: At 10:35 AM + 12/21/08, R B MacGregor wrote: Hi folks Anybody got any recommendations for a utility which would create a quick head start by creating the php/html code for a basic form using the field structure of a