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

Trending Topics

Online now

Members online
829
Guests online
2,872
Total visitors
3,701

Forum statistics

Threads
2,331,942
Posts
29,261,322
Members
1,147,908
Latest member
nanikore09
Back
Top