🔒 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
  • 457
    Views
  • 2
    Participants
Last reply from:
Xianmark

Trending Topics

Online now

Members online
1,109
Guests online
5,992
Total visitors
7,101

Forum statistics

Threads
2,327,906
Posts
29,238,588
Members
1,161,324
Latest member
leoj_0813
Back
Top