Php login access problems can be simply entered into the web page login, but I think a user can only manage data in one village. after logging in, the address bar? Id = I can log on to the console as needed & #183; & #183; & #183; for example, if a user logs in with an account of 1, only 1 of the data can be managed.
Make a simple webpage entry
Yes, but I think a user can only manage data in one village. after logging in, what is the address bar? Id = I can log on to the console as I like ···
For example, if a user logs in with an account of 1, he can only manage data of 1, but change 1 to 2 in the address bar. how can he manage data of 2?
If (isset ($ _ POST ["name"], $ _ POST ["time"]) {
$ Name = $ _ POST ["name"];
$ Time = $ _ POST ["time"];
Echo $ name;
Echo $ time;
Echo $ kind;
$ SQL = "SELECT * FROM data where kind = '$ kind '";
If ($ name) // name is not empty
{
$ SQL. = "and name = '$ name '";
If ($ time)
$ SQL. = "and input time = '$ time '";
}
Elseif ($ time)
{
$ SQL. = "and input time = '$ time '";
}
The problem is that in this query, I am directly where kind = '$ kind', so no matter what account is used to log in and modify the kind in the address bar, you can query other data ···
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.