473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need help with implementing a feature in php based web application

roccos
12
Hello,

I am working on a opensource php application related to client management.

Everything works perfectly But i want to implement a new feature to it.

The users can add, edit, delete any record from database, But what i want to implement is, The ability to allow users to :

create custom fields with custom values and and later save them in a database. (it's per client basis)


Example, Here's what users can do:

Name : Client Name
Address : Client's Address

Here's what i want to do / implement

Name : Client Name
Address : Client Address
Custom Field : Custom Value - (This should work per client basis, And also users can add any number of such fields with values.)

All i need is the concept behind this, i can implement all database related functions myself, but i don't know how to do something like this.

Waiting for your comments with solutions.....
Jul 1 '10 #1
3 1136
Dormilich
8,658 Expert Mod 8TB
personally, I don’t think it’s a good idea to let the user change the table structure. It could be possible to incorporate such a demand by serializing the custom stuff and save that in a column.
Jul 1 '10 #2
zorgi
431 Expert 256MB
You could also make separate table with custom values linked to your original table. Lets call your original table client_table and lets call that new table custom_values_table. So you have this:

client_table
client_id(Pk)
name
address

custom_values_table
custom_value_id (PK)
client_id (FK)
custom_value_label VARCHAR(120)
custom_value VARCHAR(120)

Letting user to change table structure, as Dorm said, is not very good idea.
Jul 2 '10 #3
roccos
12
Thank your for your comments.

I know i can create a separate table and get the job done.., but i really wanted to implement this in a single table..., But don't think thats's possible.

Thank you both of you :).
Jul 2 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: dayzman | last post by:
Hi, I've read somewhere that feature-based analysis can be used to extract the semantic structure of HTML documents. By semantic structure, they mean the model of the rendered view a reader...
6
by: David | last post by:
I would like to change our web site to show the products using a catalog style of presentation. MS have a free template called "ecommercesdk". Though I don't need the cart side, the database...
6
by: WebMatrix | last post by:
Hello, Sorry for the repost, I haven’t got any response in aspnet.webservices group. We have a web service being used by several clients. It's SSL secured, uses Windows (Basic)...
2
by: ern | last post by:
My command-line application must be able to run text scripts (macros). The scripts have commands, comments, and flags. Comments are ignored (maybe they are any line beginning with " ; ") Commands...
4
by: sagar | last post by:
Hello friends, I want to know if it is possible to develop a browser based application for the local desktop (running win XP) without the need for a web server. This should be something like...
4
by: kotoro | last post by:
I'm in an intro to computer programming course and just for the purposes of my test drivers and personal implementation, I would like to know if it is possible to force the program to wait for the...
2
by: cpchan | last post by:
Hello, Can I create a Web-based application (not a Web site) with Visual C# 2005 Express ? Or I have to use Visual Web Developer 2005 Express Edition, choose ASP.NET and then choose C# ? Are...
1
by: anuragshrivastava64 | last post by:
Hi All, I am using a web based application in which i need a particular windows based application at a given time when the user wants it. But i am not able to link them. Plz give any solution
2
by: venkatanarasimhaa | last post by:
Hi, I have created an application that takes input values from the employees through all means of communication. They have to input values through online. I am using VB as frontend and Ms-Access...
1
by: markla | last post by:
Hi, I have an Entity data model built in Entity Framework, which sources data primarily from an MS SQL 2008 database, and sources some static (data dictionary) values from code-based objects. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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
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...
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...

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.