Can i access database table value using a constant?

Hi,

 I have a table where username and password is stored , now in an interface i want to access password based on the username, can it be possible to access data from dB using a constant in the interface?

  Discussion posts and replies are publicly visible

Parents
  • I know this isn't your question but why are you storing usernames and passwords in a database? I also wouldn't suggest this, but if you're going to use a constant to control what's being retrieved from the database why not just directly store the password in the constant?

    We probably need a little more information to answer fully.

Reply
  • I know this isn't your question but why are you storing usernames and passwords in a database? I also wouldn't suggest this, but if you're going to use a constant to control what's being retrieved from the database why not just directly store the password in the constant?

    We probably need a little more information to answer fully.

Children
No Data