Posts by Marcus Lopes • 5 points
4 posts
-
0
votes1
answer31
viewsA: Page that requires login does not even log in even with authenticated login
I managed to arrange doing a different approach, I followed what the bfavaretto said and changed $linha = $stmt->fetchAll(PDO::FETCH_ASSOC); for $linha = $stmt->fetch(PDO::FETCH_ASSOC);, I…
-
-3
votes1
answer31
viewsQ: Page that requires login does not even log in even with authenticated login
Hello, I’m studying PHP and I ended up getting stuck in a php system with login using sessions, I wanted the login page I created to take me to a user-only page, so I did it in an if that doesn’t…
-
-1
votes1
answer274
viewsQ: How to make Select from all table ids except the first 2?
I need to make a select in mysql of all users of a table, but I cannot receive the first two users of the table and I need to do this without specifying id, since when more users are registered I…
-
0
votes1
answer65
viewsQ: How to make a page accessible only to users at a certain level
Good morning, I have a login system with php and mysql, in the database I have 2 users, one has Admin level (0) and the other Master (1), I have the login page that asks the person’s Username and…