src/Origins/BaseModel.php
public function where($table, $column, $keyword)
    {
        $connection = Connection::connect();

        $selectValue = $connection->prepare('select * from '.$table.' where '.$column.' = \''.$keyword.'\'');
        $selectValue->execute();

        return $selectValue->fetch(PDO::FETCH_ASSOC);
    }
public function where($table, $column, $keyword)
    {
        $connection = Connection::connect();

        $selectValue = $connection->prepare('select * from '.$table.' where '.$column.' = \''.$keyword.'\'');
        $selectValue->execute();

        return $selectValue->fetch(PDO::FETCH_ASSOC);
    }
public function where ( $ table , $ column , $ keyword ) { $ connection = Connection :: connect ( ) ; $ selectValue = $ connection -> prepare ( 'select * from ' . $ table . ' where ' . $ column . ' = \'' . $ keyword . '\'' ) ; $ selectValue -> execute ( ) ; return $ selectValue -> fetch ( PDO :: FETCH_ASSOC ) ; }
Return details where a column is matched by the given keyword

@param  string $table
@param  string $column
@param  string $keyword
@return array
Return details where a column is matched by the given keyword