Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[PHP] strings equal but not equalling?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RastaLulz" data-source="post: 367331" data-attributes="member: 1"><p>Assuming confirmed means they have confirmed their email, and only one user can have a specific email confirmed, this is how you'd do it:</p><p>[CODE]SELECT * FROM tbl_users WHERE email = :email AND confirmed = 'true' AND password = :hashedPassword[/CODE]</p><p>Otherwise, you should probably use something unique like a username.</p></blockquote><p></p>
[QUOTE="RastaLulz, post: 367331, member: 1"] Assuming confirmed means they have confirmed their email, and only one user can have a specific email confirmed, this is how you'd do it: [CODE]SELECT * FROM tbl_users WHERE email = :email AND confirmed = 'true' AND password = :hashedPassword[/CODE] Otherwise, you should probably use something unique like a username. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[PHP] strings equal but not equalling?
Top