🔒 Closed Get the name of login user in javafx

Status
Not open for further replies.

Xianmark

Grasshopper
Mga idol... patulong po .... paano po makuha ang pangalan ng nag login gamit ang javafx. Ang ginawa ko po na paraan, gumawa ako ng stored procedure, at ang stored procedure ko po ay mag rereturn ng 1 kapag exist yung username at password 0 naman kung hindi. Tapos, if its 1 mag bubukas cxa na panibagong window. At hindi ko po alam kung paano ko kokunin yung data ng nag login.

Salamat mga idol..
 
Pwede mo po iencorporate na if nageexist yung account then gawa ka po SELECT query sa database where username and password is equal to ...

Users userClass = new Users();

if(userClass.login(username,password)){

userClass.retrieveAccountDetails(username,password);
// or pwede mo po isabay ang dalawang methods into one..
then istore mo po sa mga variables ni Users Class... depende po sa structure ng app mo po:)

// proceed to application.

} else {
// display error message
}
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 444
    Views
  • 2
    Participants
Last reply from:
Xianmark

Online now

Members online
1,015
Guests online
710
Total visitors
1,725

Forum statistics

Threads
2,275,590
Posts
28,964,322
Members
1,231,877
Latest member
chmsln
Back
Top