I'm not a pro, but isn't there something wrong with where you put spaces? And I think you need to add an i to everywhere you've written mysql, so it says mysqli_connect for example. I'm just referring looking up on this link.
There are a lot of tutorials on the internet. People that have time to do tutorials are very nearly always very terrible at what they're doing a tutorial on.
Sorry for any offense caused to your eyes. This is my first time using SQL so I don't really know what I'm doing. Could someone please explain the code for opening a connection to the database using PDO? Thanks