When running SQL statements directly, the Cookbook says:
What does this 'assoc' mean?
$sql='select * from Users';
$results=$connection->execute($sql)->fetchAll('assoc');
There was a description in the manual.
Similar to the PDO,
Returned if 'assoc' is specified
It seems that you will be able to retrieve values from the result set by column name.
© 2024 OneMinuteCode. All rights reserved.