473,545 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ 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.derekfounta in.org/">Derek Fountain</a>
Jul 17 '05 #1
4 1745
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*c all*it*"Androme da",*because*it *is*the*"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.**Ce ntral*to*any*pr oduct*of*this*n ature*is*the*da ta
dictionary that brings it to life.**Before*s tarting*this*pr oject*I*came*to
the conclusion that it must be possible to completely specify an entire
application solely in scalar data.**This*con clusion*is*diff icult*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.**Thi s*is*also*diffi cult*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*dat abase
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*mea ns*you*just*hav e*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*wil l*be*adding*a*n ew*page*every*d ay*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
1713
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 have a form (which I use smarty templating to display, and smartyvalidator to validate). The php page basically is driven by the action variable...
1
1610
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 difference from most templates are: you can edit the template file in the html editor(Frontpage, Dreamweaver, whatever), thus a near Complete...
1
3582
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 (hopefully): an artist creates a news template (html file), drops it into a specific directory, now a client can choose that template and edit a certain number...
2
1655
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 Pending, Cancelled or NoShow. I want the page to display section information (working fine) as well as a datagrid of all the employees and their...
0
1075
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 instead of text. I have set up the template column using the datagrid properties wizard. Within "Edit Template" mode I have put two checkboxes into...
0
1007
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 SELECTED ITEM TEMPLATE for a given parent list item. When I click edit for a child list item, the required function executes, the
7
5416
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 this: I have two tables - user and item. user table: user_id int user_name varchar(50) item table:
4
10994
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 to iterate thru the gridview's rows, examine the databound controls, then perform a database action. for some reason, i can't find the controls. ...
3
2797
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 need to control the visibility of a textbox based on a dropdown selection in the datalist's edititem template. To do this, I registered a client script...
0
7475
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7409
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7664
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. ...
1
5341
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...
0
3463
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1897
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
1022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
715
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.