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

Trending Topics

Online now

Members online
1,091
Guests online
881
Total visitors
1,972

Forum statistics

Threads
2,280,481
Posts
28,997,561
Members
1,225,814
Latest member
thisisadecoybro
Back
Top