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

Trending Topics

Online now

Members online
1,174
Guests online
2,333
Total visitors
3,507

Forum statistics

Threads
2,286,232
Posts
29,036,429
Members
1,217,838
Latest member
tung tung ballerina cappu
Back
Top