Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Let's take a look at the data you'll be working with throughout this course. Once we understand the structure of the database and connection between the tables, we'll start writing our first SQL statement.
PDO::query
PDO::query executes a SQL statement in a single function call, returning the result set (if any) returned by the statement as a PDOStatement object.
For a query that you need to issue multiple times, you will realize better performance if you prepare a PDOStatement object using PDO::prepare() and issue the statement with multiple calls to PDOStatement::execute().
Import for MySQL
Database Map
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Alex Hort-Francis
12,924 Points1 Answer
-
Neven Shtiliyanov
3,973 Points1 Answer
-
Yoel Dovid Cohen
13,405 Points1 Answer
-
Caron Rumsey
2,683 PointsCRUD Operations with PHP. Reading Project cannot connect when add php to project_list.php file.
Posted by Caron RumseyCaron Rumsey
2,683 Points1 Answer
-
jlampstack
23,932 Points0 Answers
-
jlampstack
23,932 Points0 Answers
-
jlampstack
23,932 Points1 Answer
-
Veljo Palanen
29,914 Points0 Answers
-
Anas Idris
2,920 Pointshow does using the return keyword directly on the $db object work?
Posted by Anas IdrisAnas Idris
2,920 Points1 Answer
-
Taraj Shah
21,073 Points1 Answer
-
Gonzaloº Caminos
2,231 Points0 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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