🔒 Closed Tanong ko lang sa PHP

Status
Not open for further replies.

loktoy

Established
ask ko lang po kasi plano ko po kapag nilog in yun user mapupunta sya detalye nya lang po
tapos po kung mag mag lolog in sya as encoder mag eencode lang po sya ng documents po

tanong ko po dalawang home.php po ba gagawin ko or ihhide ko po

saka pede po makahingi ng sourcecode po
 
yung sa magla-login gawa ka user account function then dun sa mapupunta sa details, pwede ka gumawa ng user-details.php . yung source code search kana lang.
 
yes dalawang separate page by role po. Need mo gumawa ng role entity sa database mo para may separation of concern.

ex.

if $user->role_id === 1 {
redirect to something ...
} else {
redirect to something ...
}

also use constant or enums magandang practice din since bago ka palang para updated ka :)
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 2
    Replies
  • 593
    Views
  • 3
    Participants
Last reply from:
dev-ace

Trending Topics

Online now

Members online
1,298
Guests online
3,468
Total visitors
4,766

Forum statistics

Threads
2,308,443
Posts
29,185,122
Members
1,191,995
Latest member
whyyyy
Back
Top