Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

using PDO and PHP => Login.php

function check($data)
{
    $email = $data['email'];
    $password = $data['password'];
    $sql = "SELECT * FROM users WHERE email = ? password = ?";
    $params = [$email, $password];
    $result = $this->doSelect($sql, $params);
    print_r($result);
    //if (sizeof($result) > 0) {
    //     echo 'yes';
    //} else {
    //    echo 'no';
    //}
}
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #PDO #PHP
ADD COMMENT
Topic
Name
2+3 =