Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed PHP & Databases with PDO!
You have completed PHP & Databases with PDO!
Preview
Now that we have successfully run a query, we need to take a closer look at what is returned to us by our query method. All of the return data comes back to us in the form of a PDO Statement object.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
All of the return data comes back to us in
the form of a PDO statement object.
0:00
Okay continuing, we're going to get rid of
this exception that we have here.
0:03
It's refreshed I've already fixed it in
the file.
0:08
So refresh this and we're back to our PDO
statement object showing the query string.
0:10
And we need to extract the results from
this.
0:16
We wanna get, get all of our films out of
our PDO statement object.
0:20
And the first place I would say check is
we go to our documentation and
0:25
look up the PDOStatement object.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up