We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Working with query results

$users = Users::find( array( "conditions" => "username = ?1", "bind" => array(1 => $username) ) );

$users = $users->toArray();

Array ( [0] => Array ( [id] => 1 [role] => Administrator [firstname] => not filled [lastname] => not filled [email] => not filled [birthday] => not filled [sex] => not filled [username] => admin [password] => $2a$08$O1BmDY2XkgwjTB1UOEU4DemXMJKtN//TlK4CTvbpBh6 [logins] => 0 [last_login] => 0 ) )

$users = Users::find( array( "conditions" => "username = ?1 AND password = ?2", "bind" => array(1 => $username, 2 => $password) ) );

so I get just 1

Здарова, расскажи что хочешь получить. По русски тока ;)