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
Let's wrap up our project by cleaning up or user experience a bit.
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
what we're not checking is that what do we
do if the ID is not set,
0:00
and then if it's not set why would we
wanna run this code here?
0:05
So actually let's just get rid of all of
this code that's in here, and
0:10
put it inside of our if statement.
0:15
We're actually gonna grab all the way
through to line 19 cuz
0:17
there's certainly no point of us doing this
if we don't have it.
0:20
So we'll go ahead and hit paste in here to
drop it in and
0:24
I'm gonna do a quick tidy up.
0:28
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