I have two tables:
userpass and data
Master:
userpass table:
user
pass
email
Details:
data table:
First Name
Last Name
Company Name
Company Address
Company Phone
Company Email
Comments
Currently permission are set as follows:
Login Page:
radio button selected: Username and passwords from database
table: userpass
usernamefield: user
password field: pass
====================================
advance button:
current table: data
radio button selected: users can see and edit other users data
current table: userpass
radio button selected: :users can see and edit other users data
I have set static permissions:
username: jack has only view and export selected
username: admin has all selected
======================================
Problem: Assigning permissions to users so they can only view THEIR company data and not other users company data.
I want admin to be the only one who can add,
edit, delete to all users company data
how do i get admin to add,edit,delte these records so that the users can see their own records without having to view everyone elses records?
I have assigned no primary keys in mysql since i have assigned master and details via phprunner...(not sure i understand Primary key fully yet)
any insight would be HIGHLY appreciated. I think I'm about to go nuts trying to figure this all out....
im new to this so forgive me if i come accross sounding like a moron
Respectful regards to whomever can help me out,
mrjtdude