PDO FETCH_OBJ #1115
Unanswered
matteopasqualin
asked this question in
Q&A
PDO FETCH_OBJ
#1115
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
is it possible to fetch objects instead of array, setting code this way:
$medoo = new Medoo([ 'type' => 'mysql', 'host' => 'localhost', 'database' => 'db', 'username' => 'root', 'password' => '', 'option' => [ PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ ], ]);
I can't make it working. Any idea?
Thanks a lot
Matteo
Beta Was this translation helpful? Give feedback.
All reactions