473,414 Members | 1,674 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,414 software developers and data experts.

restricting records a user can update

Hi,
I run a hobby-based hall of fame. At the moment people send their stats
to me and I manually update the database, run the queries, and convert the
results to .pdf which is then put online.

I'm in the process of automating the procedure by changing to a .php website
with the Hall of Fame powered by a mysql database, but what I'm trying to
figure out is if each user has a unique username and password, is it
possible for the database to only allow them to update the records in table
X, Y and Z which their own username / password created (ie, they can't mess
with other players entries)?

I think I could do it by giving each user their own set of mini tables, but
that would make the queries horrendously complicated :o

Thanks,
Finalstryke
Jul 19 '05 #1
2 1790

"Finalstryke" <fi*********@btopenworld.com> wrote in message
news:bj**********@sparta.btinternet.com...
Hi,
I run a hobby-based hall of fame. At the moment people send their stats to me and I manually update the database, run the queries, and convert the
results to .pdf which is then put online.

I'm in the process of automating the procedure by changing to a .php website with the Hall of Fame powered by a mysql database, but what I'm trying to
figure out is if each user has a unique username and password, is it
possible for the database to only allow them to update the records in table X, Y and Z which their own username / password created (ie, they can't mess with other players entries)?

I think I could do it by giving each user their own set of mini tables, but that would make the queries horrendously complicated :o

Thanks,
Finalstryke


Einstein (I believe) once said "Its easy to make things complicated, but
complicated to make things easy"... and... with respect, I think you are
making life complicated on yourself.

You need two tables... one for security, the other with your hall of fame
data.

Give each user their own username/password and a security grade - for
example, make ordinary users level 9 and you (the master) level 0 (zero).
Write that to one table... You have the advantage of having eight other
levels (numbers from 1 to 8) to give some folk that little bit more access
than a level 9 person...

Then... whenever there are to be updates, or reading to be done to your
"Hall of Fame" table, check your security table first to confirm that the
person has the access you've given them.
Jul 19 '05 #2

"Finalstryke" <fi*********@btopenworld.com> wrote in message
news:bj**********@sparta.btinternet.com...
Hi,
I run a hobby-based hall of fame. At the moment people send their stats to me and I manually update the database, run the queries, and convert the
results to .pdf which is then put online.

I'm in the process of automating the procedure by changing to a .php website with the Hall of Fame powered by a mysql database, but what I'm trying to
figure out is if each user has a unique username and password, is it
possible for the database to only allow them to update the records in table X, Y and Z which their own username / password created (ie, they can't mess with other players entries)?

I think I could do it by giving each user their own set of mini tables, but that would make the queries horrendously complicated :o

Thanks,
Finalstryke


Einstein (I believe) once said "Its easy to make things complicated, but
complicated to make things easy"... and... with respect, I think you are
making life complicated on yourself.

You need two tables... one for security, the other with your hall of fame
data.

Give each user their own username/password and a security grade - for
example, make ordinary users level 9 and you (the master) level 0 (zero).
Write that to one table... You have the advantage of having eight other
levels (numbers from 1 to 8) to give some folk that little bit more access
than a level 9 person...

Then... whenever there are to be updates, or reading to be done to your
"Hall of Fame" table, check your security table first to confirm that the
person has the access you've given them.
Jul 19 '05 #3

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

Similar topics

8
by: Sans Spam | last post by:
Greetings! I have a table that contains all of the function permissions within a given application. These functions are different sections of a site and each has its own permissions (READ, WRITE,...
3
by: CSDunn | last post by:
Hello, I have an Access 2000 Project in which the data comes from a SQL Server 2000 database, and multiple users need to be able to see new records as each user adds records. The users also need...
5
by: MX1 | last post by:
Here's an interesting one. I have a database that has user level security invoked. The design is normalized and I have one field in particular called Rep ID. Any thoughts on how I can allow all...
10
by: DaveDiego | last post by:
I've had a user delete one of the client records, I do have a version of the DB with all records intact before the deletion occured. Whats the best approach to getting all the related records in...
6
by: \Shannan Casteel via AccessMonster.com\ | last post by:
I have a database for warranty claims. There is one form based on one large table. The first object is a combo box asking for dealer number. When that field is updated the dealers name, address,...
16
by: Ian Davies | last post by:
Hello Needing help with a suitable solution. I have extracted records into a table under three columns 'category', 'comment' and share (the category column also holds the index no of the record...
3
by: bluefox15 | last post by:
This is my first time posting in a forum for Access, but I've seen a lot of great answers on this site so I'm hoping I can get one for this question. I have an Access database that allows users...
3
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we...
0
by: KrazyKoder | last post by:
Hello, I have MS Access form that basically allows the user to configure an update statement to a single table via the gui. A requirement is to show the count of records that will be updated...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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...
0
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...

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.