473,626 Members | 3,948 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple From Generator accessing MySql

Bob
I am sure this has been answered in over whelming detail in this group,
however the search results have not turned up any thing I am interested
in.

I want a simple form generator in PHP that accesses a Mysql database.

The program should (ideally in my opin):

Generate a form when given a database name and table.
Options for display only, insert new record, and edit.

This is for internal company use only. So it does not have to look
terribly pretty.

Most of the form generators I have found require a considerable amount
of coding to display a form nearly equal to what writing a form from
scratch would require.

I am looking for something like:

include('form_l ine_generator.p hp');

$db_name="my_da tabase";
$table_name="cu stomers";

$new_form= new form_line_gener ator();

$new_form->get_connection ();
$new_form->set_database_n ame($db_name);
$new_form->select_db();
$new_form->set_table_name ($table_name);
$new_form->run_columns_qu ery(); // get the db columns names
from db
$new_form->generate_new_i nsert_form('not edit');

I started writing my own, but I am out of time!

Jul 17 '05 #1
3 1839
Bob wrote:
I am sure this has been answered in over whelming detail in this group,
however the search results have not turned up any thing I am interested
in.

I want a simple form generator in PHP that accesses a Mysql database.
Cut for Brevity


Try a Google for PHPClasses - there may or not be a be a space there

Hundreds of tools for forms and browsing
Have fun

Chris
Jul 17 '05 #2
Bob wrote:
I am sure this has been answered in over whelming detail in this group,
however the search results have not turned up any thing I am interested
in.

I want a simple form generator in PHP that accesses a Mysql database.

The program should (ideally in my opin):

Generate a form when given a database name and table.
Options for display only, insert new record, and edit.

This is for internal company use only. So it does not have to look
terribly pretty.

Most of the form generators I have found require a considerable amount
of coding to display a form nearly equal to what writing a form from
scratch would require.


Although I haven't used it myself, you might want to check out the PEAR package DB_Table :

http://pear.php.net/package/DB_Table

It can generate PEAR HTML_QuickForm forms from your tables.

Another PEAR alternative is DB_DataObject_F ormbuilder.
Jul 17 '05 #3
Bob wrote:
I am sure this has been answered in over whelming detail in this group,
however the search results have not turned up any thing I am interested
in.

I want a simple form generator in PHP that accesses a Mysql database.

The program should (ideally in my opin):

Generate a form when given a database name and table.
Options for display only, insert new record, and edit.

This is for internal company use only. So it does not have to look
terribly pretty.
We may have what you want. We have a complete system generator that takes a
specification and builds a database and the web site to allow for
maintenance. Security and automation are built in from the ground up.

In many cases there is no programming. Here is a super-simple example of a
time-zone table. We do not expect users to populate that table themselves,
so we populate a table like that for them:

--------------------------------------------
--- BEGIN EXAMPLE SPECIFICATION ---
--------------------------------------------
TABLE,timezones ,Time Zones,timezone, reference,risim ple
COLINTAB,timezo nes,timezone,Ti me Zone,char,7,0,p rimary_key;uise arch
TABXCOLS,timezo nes,uisearch,_d esc
TABXCOLS,timezo nes,uisearch,ui sort
COLINTAB,timezo nes,timezone_ho urs,Offset Hours,int,0,0,u isearch
COLINTAB,timezo nes,timezone_mi ns,Offset Minutes,int,0,0 ,uisearch
COLINTAB,timezo nes,timezone_of f,Computed Offset,
int,0,0,uisearc h,
EXTEND,(@timezo ne_hours * 60) + @timezone_mins
(above 3 lines are actually one line)
PROJECT,timezon es,dropdown,tim ezone_desc

CONTENT,timezon es,I,timezone;t imezone_hours;t imezone_mins;ti mezone_desc,uis ort
NZDT,13,00,New Zealand Daylight-Saving Time,170
IDLE,12,00,Inte rnational Date Line, East,180
NZST,12,00,New Zealand Standard Time,190
NZT,12,00,New Zealand Time,200
.....
.....many more lines here :)
--------------------------------------------
---- END EXAMPLE SPECIFICATION
--------------------------------------------

Note the line beginning with "PROJECT", this names a projection, or named
list of columns. Whenever table timezones is used as a foreign key in
another table, the UI looks for the "dropdown" projection and if it finds
it it uses it to define a <SELECT> element for that column.

The column "uisort" is used to sort things whose natural order makes no
sense to people. So in a table of timezones you may want to force
"EST5EDT" to the top by giving it a vaue of zero in that table.

Most of the form generators I have found require a considerable amount
of coding to display a form nearly equal to what writing a form from
scratch would require.

I am looking for something like:

include('form_l ine_generator.p hp');

$db_name="my_da tabase";
$table_name="cu stomers";

$new_form= new form_line_gener ator();
Actually ours does not require any of this. We build systems entirely based
upon database operations, and so we assume that all of this is routine and
nobody wants to be bothered with it. You type the spec in notepad (or vim)
and feed it to the generator. Then you log in and start doing your
inserts, updates, and so forth.

I started writing my own, but I am out of time!


Now for the gotchas. The system builds PostgreSQL databases, not MySQL, and
we have no plans to target MySQL until they significantly upgrade its
abilities in the areas of triggers and query complexity.

Second is that the system, while it is very easy for us to use, has had no
effort made to make it usuable by anybody but those of us who created it
and use it. It may take some effort to get you up to speed, but you won't
have to worry about coding.

Finally, we believe it can only benefit us to have the system in use as
widely as possible, and so are happy to make easy terms (read: free) with
fellow developers who may wish to climb on board as early adopters.

--
Kenneth Downs
Secure Data Software, Inc.
(Ken)nneth@(Sec )ure(Dat)a(.com )
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5163
by: Harry Slaughter | last post by:
so i'm doing yet another mysql driven php app. same kind the rest of you build every day :) yes, it gets tedious having to write new code for each new DB that one works with. so this time i decided to look into the various code generation tools that help relieve some of this tedium. i haven't found the "killer" code generator yet though. you know, the phpMyAdmin of the code generation circuit. i hope to start another thread on this...
5
2299
by: Alex Glaros | last post by:
I need help on my basic table connection syntaxt using PHP. I call the php from a web browser url_name_goes_here/test.php. The database name is tennis and the user name is tennis. If I type the commands directly from the MySQL> mode, my access works fine (see example 1 below). But when I try to access the table from PHP, I have a syntaxt problem (see example 2 below). Can anyone please type up the correct PHP syntaxt for me? The...
3
4312
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different geographical locations. I have been completely unsucessful in acheiving this goal so far however. Things I have tried: Create a shortcut to ftp sight via browser then tried to map local drive to
18
1910
by: Bob Cummings | last post by:
Not sure if this is the correct place or not. Anyhow in school we were taught that when trying to calculate the efficiency of an algorithm to focus on something called FLOPs or Floating Point operations and disregard all integer operations. My question is this. I am writing a simulation for animal dispersement through large landscapes. We are loading data from several different files to simulate the environment the animals will be...
7
3590
by: Kirk McDonald | last post by:
Let's say I have a function that takes a callback function as a parameter, and uses it to describe an iteration: def func(callback): for i in : callback(i) For the sake of argument, assume the iteration is something more interesting than this which relies on the callback mechanism. The function is an existing interface, and I cannot change it.
1
16491
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX - microlink pattern tutorial : A microlink is a link that opens up
0
1665
by: Tom | last post by:
I'm using the DB_DataObject script createTables.php to auto-generate the necessary database schema on two databases. Using the .ini approach (not the in-line PHP approach) to configure DB_DataObject in my script. Everything is by the book, but I'm having a big problem: Here's my main.ini file: database_one = mysql://user:password@localhost/one database_two = mysql://user:password@localhost/one
2
6005
by: mastahyeti | last post by:
I am working on a very large database application using MySQL and PHPMyAdmin. For this contract, I need to generate some very complex reports and i was wondering if any one knew of a free MySQL report generator that can product a professional looking report based on records and queries. Thanks
5
4829
by: Bobby Edward | last post by:
I've been researching ORM/Tier/DAL code generators. What do you recommend? It seems that subsonic (free) and LLBLGen Pro (paid) are the most popular. Any suggestions? I would prefer that it works with MySQL as well as VB.NET. Also, being able to see/edit the generated code is a plus.
0
8705
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8638
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.