Ave,

Jay..
Firstly thanks a lot for the tips. I appreciate that and in fact I do try to
go methodically in most cases, even using the pen & paper to create my flow
charts and diagrams of what I'm about to program. I actually love that
method of designing an application.

In fact, for this Phonebook application as well, right here in front of me
is the piece of paper in which I've tried to draw the different modules,
their behaviors and the functions which I will need to create in order to
make this application work intelligibly.

Coming back again to my problem..
If, in the table I'm storing my records, I create a field which stores the
Users allowed access to that particular record, then in case of multiple
users, that single field will hold multiple user names... Which is a problem
for me. And I might be applying a very wrong approach, logically, which is
why I came forward for some assistance.

Thanks again.



On 8/26/04 1:37 PM, "Jay Blanchard" <[EMAIL PROTECTED]>
wrote:

> [snip]
> There is one feature that Admin gets which I'm trying to figure out.
> When the Admin is adding a record, he gets to decide which users he
> wants to
> share the record with. He can choose particular Users by clicking on
> their
> name to share that record with. How do I make that happen?
> 
> Any suggestions?
> [/snip]
> 
> I am going to go a little sideways in response to your question because
> I believe that we should help people to learn and improve.
> 
> Many people enter the PHP arena and become exposed to the shear power
> available to them, so they want to accomplish more and more complex apps
> than they would in the course of normal web site interaction.
> 
> I believe at this point one makes the leap from web developer to
> applications developer.
> 
> One of the first things an applications developer should learn is how to
> design an application before they write the first line of code. This
> requires things like flowcharting and UML. Every programming language
> book has several words on this.
> 
> So, Junkie, what you should do is break down the the componenets into
> statements. The statements can then be broken down some more...into
> processes, decisions, etc. Once done you will know what the code is.
> It's very zen.
> 
> 1. Admin adds record.
> 2. Admin chooses user type(s) that will be allowed access to record.
> 3. Admin saves information so that application "knows".
> 
> NAME          ACCESS_LEVEL
> bhoover       admin
> pnosehair     user
> 
> etc.
> 
> [/off soapbox]
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to