GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Aug-2003, 02:45
zuzupus zuzupus is offline
Junior Member
 
Join Date: Jul 2003
Posts: 70
zuzupus is an unknown quantity at this point

user rights permission problem


hi,

i got probelm regarding user rights permission for directories for eg. if parent directory have child directories let say child1 and for child1 there is one child let say child2,

so if i give user no rights on paren directory he will not be able to see child1 and child2 ther is no sense to see,

im struggling from last 2-3 days if anybody interested i can post the link and code

thanks in advance
  #2  
Old 29-Aug-2003, 14:41
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
Post the code and someone will help you.
  #3  
Old 01-Sep-2003, 04:19
zuzupus zuzupus is offline
Junior Member
 
Join Date: Jul 2003
Posts: 70
zuzupus is an unknown quantity at this point
thanks bobby i got problem regarding tree structure for assigning user permission rights so that when user permission set to No Rights he dont have acess to particular parent directory then he wont able to see child as well as grandchilds,for eg.
if i set no rights to PARENT1 he wont able to see CHILD1,2 and 3
PARENT1 (pk_dir = 1, diradress= 1)
__CHILD1 (pk_dir = 23, diradress= 1|23)
_____GRANDCHILD11 (pk_dir = 345, diradress= 1|23|345)
_____GRANDCHILD12 (pk_dir = 346, diradress= 1|23|346)
_____GRANDCHILD13 (pk_dir = 347, diradress= 1|23|347)
__CHILD2 (pk_dir = 35, diradress = 1|35)
_____GRANDCHILD21 (pk_dir = 456, diradress= 1|35|456)
_____GRANDCHILD22 (pk_dir = 457, diradress= 1|35|457)
__CHILD3 (pk_dir = 46, diradress = 1|46)
_____GRANDCHILD31 (pk_dir = 506, diradress= 1|46|506)
________GRANDGRANDCHILD311 (pk_dir = 657, diradress= 1|46|506|657)

so i thought add a variable (say 'diradress') inside the t_directories table + need to fill in the value for all records
but im confused how to insert all records as the list is too long if i start inserting manually it will take ages to do,anybody lnows querry for this

CREATE TABLE t_directories (
sys_pk int(11) NOT NULL auto_increment,
diradress int(11) NOT NULL // is is correct or it should auto_inc
PRIMARY KEY (sys_pk))

if anybody wants complete data i can dump and post the table

thanks
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with php5 cgi installation fab13 Apache Web Server Forum 3 19-Nov-2003 10:11
unwanted scrollbar problem kelly001 Web Design Forum 3 24-Oct-2003 11:44
link problem [1][2]----- zuzupus MySQL / PHP Forum 0 16-Sep-2003 06:16
select problem zuzupus MySQL / PHP Forum 0 15-Aug-2003 08:25
join problem zuzupus MySQL / PHP Forum 0 14-Aug-2003 06:11

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:09.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.