Problems with tutorial 1:
You can find best PHP tutorial at http://e-university.wisdomjobs.com/php/chapter-223/php-tutorial.html
That article is from 2000, which is kinda prehistoric. It also uses deprecated and unsafe functionality for the most basic of things (register_globals).It should be updated a bit.
The best resource really is official documentation.
If however you are looking for tutorial, check out:
Learning PHP 5.3 by writing your own ORM
You can always refer back to official docs to reinforce the concepts.