🔒 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
  • 585
    Views
  • 3
    Participants
Last reply from:
dev-ace

Trending Topics

Online now

Members online
926
Guests online
1,247
Total visitors
2,173

Forum statistics

Threads
2,292,966
Posts
29,080,426
Members
1,208,612
Latest member
sarahaduterte
Back
Top