[SOLVED] Is it me or can't this be done in PHP?
Posted: Sat Nov 22, 2003 10:10 am
Hi,
I tried to find a solution for days now but couldn't figure it out nor find relative information on the internet so all help will be much appreciated.
The idea:
I allow users to add urls to protect and define a requested user level needed to access these pages. Naturally I want to allow more than 1 page to protect so lets say I defined 3 urls.
See the image for an example of the output in html:
http://www.awix.net/update%20protect%20 ... 0prob.JPEG
The Prob:
=> how to updated in mysql without knowing the var names?
I mean ..
I add all this information to mysql and querry the DB to output data to the user. (untill here no prob :flamed2: BUT ...)
If I now want to allow to edit already entered pages, how can I get the names of my vars as these are defined depending on how many urls the user already entered.
I found out that I can use a while loop to get all the vars posted but even than how can I use them to update the right url and associated level in mysql?
I don't know if this is clear enough so do not hesitate to ask more detais if needed. I also added a print screen of an example output which illustrate what I tried to explain.
IMG: http://www.awix.net/update%20protect%20 ... 0prob.JPEG
thx for all help as it is much needed
cheers
Siech
I tried to find a solution for days now but couldn't figure it out nor find relative information on the internet so all help will be much appreciated.
The idea:
I allow users to add urls to protect and define a requested user level needed to access these pages. Naturally I want to allow more than 1 page to protect so lets say I defined 3 urls.
See the image for an example of the output in html:
http://www.awix.net/update%20protect%20 ... 0prob.JPEG
The Prob:
=> how to updated in mysql without knowing the var names?
I mean ..
I add all this information to mysql and querry the DB to output data to the user. (untill here no prob :flamed2: BUT ...)
If I now want to allow to edit already entered pages, how can I get the names of my vars as these are defined depending on how many urls the user already entered.
I found out that I can use a while loop to get all the vars posted but even than how can I use them to update the right url and associated level in mysql?
I don't know if this is clear enough so do not hesitate to ask more detais if needed. I also added a print screen of an example output which illustrate what I tried to explain.
IMG: http://www.awix.net/update%20protect%20 ... 0prob.JPEG
thx for all help as it is much needed
cheers
Siech