Please help me check if the email exists using pdo : This is the section I use to add users.
    
<?php
    
    session_start();
    
    if( isset($_SESSION['user_id']) ){
    	header("Location: ./index.php");
    }
    
    require 'conn.php';
    
    $message = '';
    
    if(!empty($_POST['name']) &&!empty($_POST['email']) && !empty($_POST['password'])):
    
    	// Enter the new user in the database
    	$sql = "INSERT INTO users (name, email, password) VALUES (:name,:email, :password)";
    	$stmt = $conn->prepare($sql);
    
    	$stmt->bindValue(':name', $_POST['name']);
    	$stmt->bindValue(':email', $_POST['email']);
    	$stmt->bindValue(':password', password_hash($_POST['password'], PASSWORD_BCRYPT));
    
    	if( $stmt->execute() ):
    		$message = 'Successfully created new user';
    	else:
    		$message = 'Sorry there must have been an issue creating your account';
    	endif;
    
    endif;
    
    ?>
    
    Thanks in advanced. Php NewBie