473,473 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Template for create/find/display/edit

I'm just starting another PHP project and can see a familiar task not far on
the horizon. I have several database record tuples that I need to
manipulate - person, department, client, job, etc. - and each one needs a
form where the user can enter new details to create a new tuple in the DB,
another form where the user can enter a name/id/whatever to query the DB
and display the results, another form where the user can modify the
existing details and have the modifications changed in the DB. And so on.

Surely a large percentage of PHP based applications need this kind of
facility? I would expect, therefore, that this task has been solved many
times over and maybe appears in some sort of "template" code? Can anyone
recommend such a thing? Preferably free and with a Postgresql back end?

--
The email address used to post is a spam pit. Contact me at
http://www.derekfountain.org : <a
href="http://www.derekfountain.org/">Derek Fountain</a>
Jul 17 '05 #1
4 1736
Astonishing! Dogs scampered and hid under sideboards, hamsters stopped
turning in their wheels, and silence fell as Derek Fountain paused, put
down his Happy Meal, and blurted:
I'm just starting another PHP project and can see a familiar task not
far on the horizon. I have several database record tuples that I need
to manipulate - person, department, client, job, etc. - and each one
needs a form where the user can enter new details to create a new
tuple in the DB, another form where the user can enter a
name/id/whatever to query the DB and display the results, another form
where the user can modify the existing details and have the
modifications changed in the DB. And so on.

Surely a large percentage of PHP based applications need this kind of
facility? I would expect, therefore, that this task has been solved
many times over and maybe appears in some sort of "template" code? Can
anyone recommend such a thing? Preferably free and with a Postgresql
back end?


90% of applications require just that. Which is why it is worth developing
your own code for the purpose and modifying it as required.

--

You read too far. You should stop the moment you see Von Heler." Archangel
"long lunged + acting 'interesting' = Von Heler" Football Commentator


Jul 17 '05 #2
Derek Fountain wrote:
I'm just starting another PHP project and can see a familiar task not far on
the horizon. I have several database record tuples that I need to
manipulate - person, department, client, job, etc. - and each one needs a
form where the user can enter new details to create a new tuple in the DB,
another form where the user can enter a name/id/whatever to query the DB
and display the results, another form where the user can modify the
existing details and have the modifications changed in the DB. And so on.

Surely a large percentage of PHP based applications need this kind of
facility? I would expect, therefore, that this task has been solved many
times over and maybe appears in some sort of "template" code? Can anyone
recommend such a thing? Preferably free and with a Postgresql back end?

Create your own!

It is easy to do. You will understand ALL of the code. You can
design and write to conform to your own standards.

One trick is to build the skeleton code and plug in "JJ" for
each of the variables that you will have to change in your real
code. (If you are not using English and "JJ" is valid in your
language of choice select any invalid letter pair).

When the time comes to write a "new" program just copy your
skeleton over and with your favorite editor search for "JJ" and
replace each occurrence with the appropriate variable name.

HTH
Jerry
Jul 17 '05 #3
Derek Fountain <no****@example.com> wrote in
news:42***********************@per-qv1-newsreader-01.iinet.net.au:
I'm just starting another PHP project and can see a familiar task not
far on the horizon. I have several database record tuples that I need
to manipulate - person, department, client, job, etc. - and each one
needs a form where the user can enter new details to create a new
tuple in the DB, another form where the user can enter a
name/id/whatever to query the DB and display the results, another form
where the user can modify the existing details and have the
modifications changed in the DB. And so on.

Surely a large percentage of PHP based applications need this kind of
facility? I would expect, therefore, that this task has been solved
many times over and maybe appears in some sort of "template" code? Can
anyone recommend such a thing? Preferably free and with a Postgresql
back end?


http://phpmyedit.org/home.php

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 17 '05 #4
Derek Fountain wrote:
I'm just starting another PHP project and can see a familiar task not far
on the horizon. I have several database record tuples that I need to
manipulate - person, department, client, job, etc. - and each one needs a
form where the user can enter new details to create a new tuple in the DB,
another form where the user can enter a name/id/whatever to query the DB
and display the results, another form where the user can modify the
existing details and have the modifications changed in the DB. And so on.

Surely a large percentage of PHP based applications need this kind of
facility? I would expect, therefore, that this task has been solved many
times over and maybe appears in some sort of "template" code? Can anyone
recommend such a thing? Preferably free and with a Postgresql back end?


My company has developed such a thing, and though it is not Free Software,
we would likely grant favorable terms to developers who were early
adopters.**We*call*it*"Andromeda",*because*it*is*t he*"first*step*on*a
larger scale".

Coincidentally, it does hit PostgreSQL, we are targetting 7.4.x.**The*web
layer is 100% PHP.**

There are a great many advantages to this approach, not the least of which
is that you can boast "This system optimized for any *browser*", because
once you work out a good library you use it for everything.

If you are not able to license the product, I would still be happy to offer
some of my experience.**Central*to*any*product*of*this*nature *is*the*data
dictionary that brings it to life.**Before*starting*this*project*I*came*to
the conclusion that it must be possible to completely specify an entire
application solely in scalar data.**This*conclusion*is*difficult*for*many
people to accept, but failure to accept it will cripple your efforts.

Also central is the conviction that there are no special or unsolved cases
out there, only cases we may not recognize.**This*is*also*difficult*to
accept because it is a direct challenge to that awful beast -- human pride.
It is much easier for me to look at a problem and declare it "special", and
therefore requiring my unmatched brilliance to solve, then to say, "I don't
recognize the pattern, I'll have to dig around and ask, it has probably
been solved before."**

The second idea makes possible the first.**If*the*universe*of*database
applications contains a finite number of patterns, then all applications
that can ever be written can be described with a finite set of terms,
combined in infinite ways.**That*means*you*just*have*to*be*clever*about *how
you build your data dictionary, for it embodies your understanding of what
patterns exist and what problems you can solve.

You are welcome to check out our web site (which you can work out from my
anti-bot email in sig block), but alas, only now are we bringing it online,
so it is quite sparse.**We*will*be*adding*a*new*page*every*day*or *two*for
the next two weeks, and we hope to bring some demo systems up also in the
next two weeks.

Hope this helps, cheers!

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

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

Similar topics

6
by: DJ Majestik | last post by:
OK, I am devising a php page that will handle a form submission, and wanted to know if anyone has already setup such an idea, or if you had links to point to good tutorials on this. Basically I...
1
by: Wensheng | last post by:
Hi, I wrote a small template engine called spytee. Like any template enigne, it take a text(html) template file as input, process the variable tags in the file, and display the resulted text. The...
1
by: dSchwartz | last post by:
I am creating a totally adminable news system in asp.net (C#, SQL server). what i want to accomplish is allow multiple news templates to be read by an admin area. heres how it works...
2
by: Ron | last post by:
Hello, I am trying to create a page that pulls class rosters from an SQLServer database. The roster table definition is: emp_id(pk, fk), sec_id(pk, fk), reg_date and reg_status. Status can be...
0
by: wwcoop | last post by:
I am connected to an Access Database. I am reading a Yes/No field from the DB which translates back as True/False in the text field of my datagrid. I want to use a checkbox to show the value...
0
by: Adam Knight | last post by:
Hi all, I have two nested DataLists. When I click edit in the parent list the edit comand executes and the required Edit Item Template is displayed. The child list is display in the...
7
by: studio60podcast | last post by:
I have a gridview and a details view in a page. The two are hooked up, so that when a row is selected in the GridView, the DetailsView displays the details. But, what I'm trying to accomplish is...
4
by: Craig Buchanan | last post by:
I dynamically add data-bound templates to a gridview in my ascx control. while this works correctly when the gridview is databound to the datatable, i'm having issues on postback. i would like...
3
by: Crazy Cat | last post by:
Hi all, I am developing an asp.net 2.0 application in Visual Studio 2005. On my page I have a simple datalist that is bound programmatically to a collection of simple objects. On this page I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.