Home › Forums › Back End › Need help with login form › Reply To: Need help with login form
June 3, 2015 at 8:14 pm
#203180
cscodismith
Participant
Throughout the past day I have been researching on google ‘<i>How to check if username already exists in database using PDO</i>’
All I have found that seems helpful is this line of code but am not entirely sure how to use it and where to put it. Like I said I am completely new to working this function. I am getting the following line of code from a stackexchange question that can be found here.
if( $row = $sthandler->fetch() ){
// User exists: read its details here
}else{
// User does not exist
}
Perhaps you may be able to help me further by directing me more into the right direction.
Best regards,
Codi